]> granicus.if.org Git - postgresql/commit
Fix parsing of time string followed by yesterday/today/tomorrow.
authorRobert Haas <rhaas@postgresql.org>
Tue, 30 Aug 2011 15:34:29 +0000 (11:34 -0400)
committerRobert Haas <rhaas@postgresql.org>
Tue, 30 Aug 2011 15:38:42 +0000 (11:38 -0400)
commit8a3d33c8e6c681d512f79af4a521ee0c02befcef
treef85ddcc351946c777225a19c578d2c52254c5d61
parenteab2ef6164ae2d0e5a72501de9c09474fd94a394
Fix parsing of time string followed by yesterday/today/tomorrow.

Previously, 'yesterday 04:00:00'::timestamp didn't do the same thing as
'04:00:00 yesterday'::timestamp, and the return value from the latter
was midnight rather than the specified time.

Dean Rasheed, with some stylistic changes
src/backend/utils/adt/datetime.c
src/test/regress/expected/horology.out
src/test/regress/sql/horology.sql