Skip to content

Commit f9df1b2

Browse files
committed
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 ...
1 parent 256d463 commit f9df1b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/timezone/pgtz.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
77
*
88
* IDENTIFICATION
9-
* $PostgreSQL: pgsql/src/timezone/pgtz.c,v 1.11 2004/05/21 12:30:25 momjian Exp $
9+
* $PostgreSQL: pgsql/src/timezone/pgtz.c,v 1.12 2004/05/23 22:24:08 tgl Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -303,7 +303,7 @@ void
303303
pg_timezone_initialize(void)
304304
{
305305
/* Do we need to try to figure the timezone? */
306-
if (strcmp(GetConfigOption("timezone"), "UNKNOWN") == 0)
306+
if (pg_strcasecmp(GetConfigOption("timezone"), "UNKNOWN") == 0)
307307
{
308308
const char *def_tz;
309309

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy