From a239af02c3585f4355737230bc54902e8217f76e Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 9 Sep 2005 02:31:50 +0000 Subject: Fix the various forms of AT TIME ZONE to accept either timezones found in the zic database or zone names found in the date token table. This preserves the old ability to do AT TIME ZONE 'PST' along with the new ability to do AT TIME ZONE 'PST8PDT'. Per gripe from Bricklen Anderson. Also, fix some inconsistencies in usage of TZ_STRLEN_MAX --- the old code had the potential for one-byte buffer overruns, though given alignment considerations it's unlikely there was any real risk. --- src/include/pgtime.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/include/pgtime.h') diff --git a/src/include/pgtime.h b/src/include/pgtime.h index ab4bdef1f68..95f21393939 100644 --- a/src/include/pgtime.h +++ b/src/include/pgtime.h @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * * IDENTIFICATION - * $PostgreSQL: pgsql/src/include/pgtime.h,v 1.9 2005/07/22 03:46:34 momjian Exp $ + * $PostgreSQL: pgsql/src/include/pgtime.h,v 1.10 2005/09/09 02:31:49 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -58,7 +58,7 @@ extern const char *pg_get_timezone_name(pg_tz *tz); extern pg_tz *global_timezone; -/* Maximum length of a timezone name */ +/* Maximum length of a timezone name (not including trailing null) */ #define TZ_STRLEN_MAX 255 #endif /* _PGTIME_H */ -- cgit v1.2.3