]> granicus.if.org Git - postgresql/commit
Fix DecodeDateTime to allow timezone to appear before year. This had
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 12 Jun 2007 15:58:39 +0000 (15:58 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 12 Jun 2007 15:58:39 +0000 (15:58 +0000)
commit83d95b572b8ef344b74da2ceb1fdfa8579a20638
tree2ffd242eb28f93139a58e78d35e2ad83216e6f4c
parentab4f1947f3a2a135e7bb01bf06010c54ab5118f8
Fix DecodeDateTime to allow timezone to appear before year.  This had
historically worked in some but not all cases, but as of 8.2 it failed for all
timezone formats.  Fix, and add regression test cases to catch future
regressions in this area.  Per gripe from Adam Witney.
src/backend/utils/adt/datetime.c
src/test/regress/expected/timestamptz.out
src/test/regress/sql/timestamptz.sql