Thread: pgsql: Fix a bug in input processing for the "interval" type.
pgsql: Fix a bug in input processing for the "interval" type.
From
neilc@postgresql.org (Neil Conway)
Date:
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 Tags: ---- REL8_1_STABLE Modified Files: -------------- pgsql/doc/src/sgml: datatype.sgml (r1.163.2.3 -> r1.163.2.4) (http://developer.postgresql.org/cvsweb.cgi/pgsql/doc/src/sgml/datatype.sgml.diff?r1=1.163.2.3&r2=1.163.2.4) pgsql/src/backend/utils/adt: datetime.c (r1.160.2.2 -> r1.160.2.3) (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/datetime.c.diff?r1=1.160.2.2&r2=1.160.2.3) pgsql/src/include/utils: datetime.h (r1.57 -> r1.57.2.1) (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/include/utils/datetime.h.diff?r1=1.57&r2=1.57.2.1) pgsql/src/test/regress/expected: interval.out (r1.14 -> r1.14.2.1) (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/expected/interval.out.diff?r1=1.14&r2=1.14.2.1) pgsql/src/test/regress/sql: interval.sql (r1.8 -> r1.8.2.1) (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/sql/interval.sql.diff?r1=1.8&r2=1.8.2.1)