postgres.git / summary / log / commit / refs
commit 266bf09a164dff61ca5e2a5fc466012cf19e70cf
Author: Magnus Hagander <magnus@hagander.net>
Date: Thu Apr 08 11:26:00 2010 +0000
First released in: 9.0.0, 8.2.17, 8.3.11, 8.4.4
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
src/timezone/pgtz.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/timezone/pgtz.c b/src/timezone/pgtz.c
index 7fddb3bcc6a..180c325dc69 100644
--- a/src/timezone/pgtz.c
+++ b/src/timezone/pgtz.c
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/timezone/pgtz.c,v 1.48.2.3 2010/04/06 20:35:13 mha Exp $
+ * $PostgreSQL: pgsql/src/timezone/pgtz.c,v 1.48.2.4 2010/04/08 11:26:00 mha Exp $
*
*-------------------------------------------------------------------------
*/
@@ -1076,7 +1076,7 @@ identify_system_timezone(void)
(errmsg_internal("could not query value for 'std' to identify Windows timezone \"%s\": %i",
keyname, (int) r)));
RegCloseKey(key);
- break;
+ continue; /* Proceed to look at the next timezone */
}
if (strcmp(tzname, zonename) == 0)
{
@@ -1093,7 +1093,7 @@ identify_system_timezone(void)
(errmsg_internal("could not query value for 'dlt' to identify Windows timezone \"%s\": %i",
keyname, (int) r)));
RegCloseKey(key);
- break;
+ continue; /* Proceed to look at the next timezone */
}
if (strcmp(tzname, zonename) == 0)
{
[parent: 346dd12c9fce]