diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2010-03-11 18:43:24 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2010-03-11 18:43:24 +0000 |
commit | f4898c945fb18c3ced03101adecb6c58e4128ad5 (patch) | |
tree | 07a47ab5d63be9c02a4c264478ca3f25f9a900a7 /src/timezone/strftime.c | |
parent | e0f9e2b648c8e6f237549c353b7b3179654451d1 (diff) | |
download | postgresql-f4898c945fb18c3ced03101adecb6c58e4128ad5.tar.gz postgresql-f4898c945fb18c3ced03101adecb6c58e4128ad5.zip |
Sync timezone code with tzcode 2010c from the Olson group. This fixes some
corner cases that come up in certain timezones (apparently, only those with
lots and lots of distinct TZ transition rules, as far as I can gather from
a quick scan of their archives). Per suggestion from Jeevan Chalke.
Back-patch to 8.4. Possibly we need to push this into earlier releases
as well, but I'm hesitant to update them to the 64-bit tzcode without
more thought and testing.
Diffstat (limited to 'src/timezone/strftime.c')
-rw-r--r-- | src/timezone/strftime.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/timezone/strftime.c b/src/timezone/strftime.c index 39443af9d5a..4400af53d0c 100644 --- a/src/timezone/strftime.c +++ b/src/timezone/strftime.c @@ -15,7 +15,7 @@ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. * * IDENTIFICATION - * $PostgreSQL: pgsql/src/timezone/strftime.c,v 1.14 2009/06/11 14:49:15 momjian Exp $ + * $PostgreSQL: pgsql/src/timezone/strftime.c,v 1.15 2010/03/11 18:43:24 tgl Exp $ */ #include "postgres.h" @@ -169,7 +169,7 @@ _fmt(const char *format, const struct pg_tm * t, char *pt, const char *ptlim, { int warn2 = IN_SOME; - pt = _fmt(Locale->c_fmt, t, pt, ptlim, warnp); + pt = _fmt(Locale->c_fmt, t, pt, ptlim, &warn2); if (warn2 == IN_ALL) warn2 = IN_THIS; if (warn2 > *warnp) |