git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 28454c2)
From: Thomas Lockhart <Thomas.G.Lockhart@jpl.nasa.gov>
1997年3月28日 07:18:06 +0000 (07:18 +0000)
1997年3月28日 07:18:06 +0000 (07:18 +0000)
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 :(


diff --git a/src/backend/utils/adt/dt.c b/src/backend/utils/adt/dt.c
index 211de2b2a2a08f3b62c8c1934b7b5e4e6def34f9..f56eb68a5f3b1de495c2d26f67d3ebf6feafc5bd 100644 (file)
--- a/src/backend/utils/adt/dt.c
+++ b/src/backend/utils/adt/dt.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/dt.c,v 1.12 1997年03月28日 07:12:46 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/dt.c,v 1.13 1997年03月28日 07:16:59 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
@@ -2466,6 +2466,9 @@ int EncodeDateTime(struct tm *tm, double fsec, int style, char *str)
char mabbrev[4], dabbrev[4];
int day, hour, min;
double sec;
+#ifdef DATEDEBUG
+ char buf[MAXDATELEN];
+#endif
sec = (tm->tm_sec + fsec);
diff --git a/src/backend/utils/init/globals.c b/src/backend/utils/init/globals.c
index 1fa7cf7187a47d01678573f91f59db3c0b3064fd..ddbe67b624f0d0300d14ff95bb835f2c58a9ce82 100644 (file)
--- a/src/backend/utils/init/globals.c
+++ b/src/backend/utils/init/globals.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/init/globals.c,v 1.8 1997年03月25日 08:09:43 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/init/globals.c,v 1.9 1997年03月28日 07:18:06 scrappy Exp $
*
* NOTES
* Globals used all over the place should be declared here and not
@@ -65,7 +65,7 @@ bool IsPostmaster = false;
short DebugLvl = 0;
-int DateStyle = USE_ISO_DATES;
+int DateStyle = USE_POSTGRES_DATES;
bool EuroDates = false;
bool HasCTZSet = false;
bool CDayLight = false;
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /