mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-03 08:00:21 +08:00
Proceed to look for the next timezone when matching a localized
Windows timezone name where the information in the registry is incomplete, instead of aborting. This fixes cases when the registry information is incomplete for a timezone that is alphabetically before the one that is in use. Per report from Alexander Forschner
This commit is contained in:
parent
0ae9a9d25f
commit
34baf4b3d3
@ -6,7 +6,7 @@
|
|||||||
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
|
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/timezone/pgtz.c,v 1.58.2.2 2010/04/06 20:35:15 mha Exp $
|
* $PostgreSQL: pgsql/src/timezone/pgtz.c,v 1.58.2.3 2010/04/08 11:26:03 mha Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -1089,7 +1089,7 @@ identify_system_timezone(void)
|
|||||||
(errmsg_internal("could not query value for 'std' to identify Windows timezone \"%s\": %i",
|
(errmsg_internal("could not query value for 'std' to identify Windows timezone \"%s\": %i",
|
||||||
keyname, (int) r)));
|
keyname, (int) r)));
|
||||||
RegCloseKey(key);
|
RegCloseKey(key);
|
||||||
break;
|
continue; /* Proceed to look at the next timezone */
|
||||||
}
|
}
|
||||||
if (strcmp(tzname, zonename) == 0)
|
if (strcmp(tzname, zonename) == 0)
|
||||||
{
|
{
|
||||||
@ -1106,7 +1106,7 @@ identify_system_timezone(void)
|
|||||||
(errmsg_internal("could not query value for 'dlt' to identify Windows timezone \"%s\": %i",
|
(errmsg_internal("could not query value for 'dlt' to identify Windows timezone \"%s\": %i",
|
||||||
keyname, (int) r)));
|
keyname, (int) r)));
|
||||||
RegCloseKey(key);
|
RegCloseKey(key);
|
||||||
break;
|
continue; /* Proceed to look at the next timezone */
|
||||||
}
|
}
|
||||||
if (strcmp(tzname, zonename) == 0)
|
if (strcmp(tzname, zonename) == 0)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user