From: Tom Lane Date: Sun, 23 May 2004 22:24:08 +0000 (+0000) Subject: Use case-insensitive comparison so that explicitly setting timezone=unknown X-Git-Tag: REL8_0_0BETA1~551 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f9df1b28e88c065793c27694f0c61d70e8733868;p=postgresql Use case-insensitive comparison so that explicitly setting timezone=unknown 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 1fde0854d6..bc3b0ef0eb 100644 --- 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;