Skip site navigation (1) Skip section navigation (2)

pgsql: Clean up a couple of weird corner cases in interval parsing: make

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 (view raw or flat)
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)

pgsql-committers by date

Next:From: Tom LaneDate: 2008-09-17 04:31:08
Subject: pgsql: Add an "events" system to libpq, whereby applications can get
Previous:From: User H-saitoDate: 2008-09-16 14:49:40
Subject: psqlodbc - psqlodbc: using -Wall.(attached is a list of warnings)

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group