Content-Length: 272279 | pFad | http://github.com/postgrespro/postgres_cluster/commit/f9df1b28e88c065793c27694f0c61d70e8733868

74 Use case-insensitive comparison so that explicitly setting timezone=u… · postgrespro/postgres_cluster@f9df1b2 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/f9df1b28e88c065793c27694f0c61d70e8733868

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy