Skip to content

Commit 632a707

Browse files
committed
From: Thomas Lockhart <Thomas.G.Lockhart@jpl.nasa.gov>
Subject: [HACKERS] Small date patches (resubmitted) Here a some small patches for the date/time code. They set the default output format for the datetime type to the traditional Postgres style, and fix a date debugging declaration. I submitted these a couple of days ago, but they might have gotten lost... NOTE: the second patch to dt.c is what I believe D'Arcy submitted as well, that I claimed was taken out...sorry D'Arcy, my fault :(
1 parent 28454c2 commit 632a707

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/backend/utils/adt/dt.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/dt.c,v 1.12 1997/03/28 07:12:46 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/dt.c,v 1.13 1997/03/28 07:16:59 scrappy Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -2466,6 +2466,9 @@ int EncodeDateTime(struct tm *tm, double fsec, int style, char *str)
24662466
char mabbrev[4], dabbrev[4];
24672467
int day, hour, min;
24682468
double sec;
2469+
#ifdef DATEDEBUG
2470+
char buf[MAXDATELEN];
2471+
#endif
24692472

24702473
sec = (tm->tm_sec + fsec);
24712474

src/backend/utils/init/globals.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/init/globals.c,v 1.8 1997/03/25 08:09:43 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/init/globals.c,v 1.9 1997/03/28 07:18:06 scrappy Exp $
1111
*
1212
* NOTES
1313
* Globals used all over the place should be declared here and not
@@ -65,7 +65,7 @@ bool IsPostmaster = false;
6565

6666
short DebugLvl = 0;
6767

68-
int DateStyle = USE_ISO_DATES;
68+
int DateStyle = USE_POSTGRES_DATES;
6969
bool EuroDates = false;
7070
bool HasCTZSet = false;
7171
bool CDayLight = false;

0 commit comments

Comments
 (0)