Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit632a707

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 defaultoutput format for the datetime type to the traditional Postgresstyle, and fix a date debugging declaration. I submitted thesea 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 parent28454c2 commit632a707

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
charmabbrev[4],dabbrev[4];
24672467
intday,hour,min;
24682468
doublesec;
2469+
#ifdefDATEDEBUG
2470+
charbuf[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 @@ boolIsPostmaster = false;
6565

6666
shortDebugLvl=0;
6767

68-
intDateStyle=USE_ISO_DATES;
68+
intDateStyle=USE_POSTGRES_DATES;
6969
boolEuroDates= false;
7070
boolHasCTZSet= false;
7171
boolCDayLight= false;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp