Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
51e0fe5c
Commit
51e0fe5c
authored
May 16, 1997
by
Thomas G. Lockhart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve informational messages for "show" command responses.
parent
f8d4b3cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
5 deletions
+17
-5
src/backend/tcop/variable.c
src/backend/tcop/variable.c
+17
-5
No files found.
src/backend/tcop/variable.c
View file @
51e0fe5c
...
...
@@ -2,7 +2,7 @@
* Routines for handling of 'SET var TO', 'SHOW var' and 'RESET var'
* statements.
*
* $Id: variable.c,v 1.
7 1997/04/29 04:38:58 vadim
Exp $
* $Id: variable.c,v 1.
8 1997/05/16 07:24:13 thomas
Exp $
*
*/
...
...
@@ -191,7 +191,7 @@ static bool parse_date(const char *value)
}
else
{
elog
(
WARN
,
"Bad value for date (%s)"
,
tok
);
elog
(
WARN
,
"Bad value for date
style
(%s)"
,
tok
);
}
}
...
...
@@ -205,9 +205,21 @@ static bool show_date()
{
char
buf
[
64
];
sprintf
(
buf
,
"Date style is %s with%s European conventions"
,
((
DateStyle
==
USE_ISO_DATES
)
?
"iso"
:
((
DateStyle
==
USE_ISO_DATES
)
?
"sql"
:
"postgres"
)),
((
EuroDates
)
?
""
:
"out"
));
strcpy
(
buf
,
"DateStyle is "
);
switch
(
DateStyle
)
{
case
USE_ISO_DATES
:
strcat
(
buf
,
"ISO"
);
break
;
case
USE_SQL_DATES
:
strcat
(
buf
,
"SQL"
);
break
;
default:
strcat
(
buf
,
"Postgres"
);
break
;
};
strcat
(
buf
,
" with "
);
strcat
(
buf
,
((
EuroDates
)
?
"European"
:
"US (NonEuropean)"
));
strcat
(
buf
,
" conventions"
);
elog
(
NOTICE
,
buf
,
NULL
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment