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: 256d463)
Use case-insensitive comparison so that explicitly setting timezone=unknown
2004年5月23日 22:24:08 +0000 (22:24 +0000)
2004年5月23日 22:24:08 +0000 (22:24 +0000)
in postgresql.conf does the right thing. variable.c got this right, but
not pgtz.c ...


diff --git a/src/timezone/pgtz.c b/src/timezone/pgtz.c
index 1fde0854d6ece55993ac5de04155025a37452ddc..bc3b0ef0eb65c78aab7eea4d7adf3f92e8afdb51 100644 (file)
--- a/src/timezone/pgtz.c
+++ b/src/timezone/pgtz.c
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/timezone/pgtz.c,v 1.11 2004年05月21日 12:30:25 momjian Exp $
+ * $PostgreSQL: pgsql/src/timezone/pgtz.c,v 1.12 2004年05月23日 22:24:08 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -303,7 +303,7 @@ void
pg_timezone_initialize(void)
{
/* Do we need to try to figure the timezone? */
- if (strcmp(GetConfigOption("timezone"), "UNKNOWN") == 0)
+ if (pg_strcasecmp(GetConfigOption("timezone"), "UNKNOWN") == 0)
{
const char *def_tz;
This is the main PostgreSQL git repository.
RSS Atom

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