From: | tgl(at)postgresql(dot)org (Tom Lane) |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Clean up a couple of weird corner cases in interval parsing: make |
Date: | 2008-09-16 22:31:22 |
Message-ID: | 20080916223122.0EEF47545A4@cvs.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Log Message:
-----------
Clean up a couple of weird corner cases in interval parsing: make -yyyy-mm be
interpreted as expected (the sign should affect months too), and get rid of
hard-wired assumption that unmarked signed values must be hours (if integers)
or seconds (if floats). The former was just a bug in my previous patch,
while the latter may have made sense at one time but seems illogical now
that we support determination of the units from typmod information.
Ron Mayer and myself.
Modified Files:
--------------
pgsql/src/backend/utils/adt:
datetime.c (r1.192 -> r1.193)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/datetime.c?r1=1.192&r2=1.193)
pgsql/src/test/regress/expected:
interval.out (r1.22 -> r1.23)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/expected/interval.out?r1=1.22&r2=1.23)
pgsql/src/test/regress/sql:
interval.sql (r1.14 -> r1.15)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/sql/interval.sql?r1=1.14&r2=1.15)
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2008-09-17 04:31:08 | pgsql: Add an "events" system to libpq, whereby applications can get |
Previous Message | User H-saito | 2008-09-16 14:49:40 | psqlodbc - psqlodbc: using -Wall.(attached is a list of warnings) |