pgsql: Fix a bug in input processing for the "interval" type. - Mailing list pgsql-committers

From neilc@postgresql.org (Neil Conway)
Subject pgsql: Fix a bug in input processing for the "interval" type.
Date
Msg-id 20070529045843.F06A39FB5EA@postgresql.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
Fix a bug in input processing for the "interval" type. Previously,
"microsecond" and "millisecond" units were not considered valid input
by themselves, which caused inputs like "1 millisecond" to be rejected
erroneously.

Update the docs, add regression tests, and backport to 8.2 and 8.1

Modified Files:
--------------
    pgsql/doc/src/sgml:
        datatype.sgml (r1.201 -> r1.202)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/doc/src/sgml/datatype.sgml.diff?r1=1.201&r2=1.202)
    pgsql/src/backend/utils/adt:
        datetime.c (r1.179 -> r1.180)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/datetime.c.diff?r1=1.179&r2=1.180)
    pgsql/src/include/utils:
        datetime.h (r1.65 -> r1.66)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/include/utils/datetime.h.diff?r1=1.65&r2=1.66)
    pgsql/src/test/regress/expected:
        interval.out (r1.18 -> r1.19)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/expected/interval.out.diff?r1=1.18&r2=1.19)
    pgsql/src/test/regress/sql:
        interval.sql (r1.11 -> r1.12)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/sql/interval.sql.diff?r1=1.11&r2=1.12)

pgsql-committers by date:

Previous
From: neilc@postgresql.org (Neil Conway)
Date:
Subject: pgsql: mmgr README tweak: "either" is no longer correct.
Next
From: neilc@postgresql.org (Neil Conway)
Date:
Subject: pgsql: Fix a bug in input processing for the "interval" type.