pgsql: Fix parsing of time string followed by yesterday/today/tomorrow.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix parsing of time string followed by yesterday/today/tomorrow.
Date: 2011-08-30 15:39:02
Message-ID: E1QyQP0-0001P5-HD@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/8a3d33c8e6c681d512f79af4a521ee0c02befcef

Modified Files
--------------
src/backend/utils/adt/datetime.c | 23 ++++------
src/test/regress/expected/horology.out | 78 ++++++++++++++++++++++++++++++++
src/test/regress/sql/horology.sql | 13 +++++
3 files changed, 100 insertions(+), 14 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2011-08-30 16:09:58 pgsql: Detect out of date flex in MSVC builds.
Previous Message User Albe 2011-08-30 11:17:50 oracle-fdw - oracle_fdw: Add DOCS to Makefile.