]> 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:32 +0000 (15:58 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 12 Jun 2007 15:58:32 +0000 (15:58 +0000)
commitd0599994da684374cf7b30eab4c69c019f38f5ab
tree9427a7aa3cba8578df7898fcebad5bb5306e3ff9
parente41c7bb7cd75b36f9d51d2f335bb66fb5a213987
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