]> granicus.if.org Git - postgresql/commit
Fix a bug in input processing for the "interval" type. Previously,
authorNeil Conway <neilc@samurai.com>
Tue, 29 May 2007 04:59:15 +0000 (04:59 +0000)
committerNeil Conway <neilc@samurai.com>
Tue, 29 May 2007 04:59:15 +0000 (04:59 +0000)
commit75103cc2189d8455dfb6904b01c4a96449518ee9
tree2072e15fca5bfedbaefe0eaec127a31ec53c72b7
parent7b6b5ba9b289510b71313cc250db45c3fd38d8cd
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
doc/src/sgml/datatype.sgml
src/backend/utils/adt/datetime.c
src/include/utils/datetime.h
src/test/regress/expected/interval.out
src/test/regress/sql/interval.sql