Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf9df1b2

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, butnot pgtz.c ...
1 parent256d463 commitf9df1b2

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
constchar*def_tz;
309309

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp