Clean up a couple of weird corner cases in interval parsing: make -yyyy-mm be
commitaaebbf8337eb6612d65e147402930114ffc07e8a
authortgl <tgl>
Tue, 16 Sep 2008 22:31:21 +0000 (16 22:31 +0000)
committertgl <tgl>
Tue, 16 Sep 2008 22:31:21 +0000 (16 22:31 +0000)
tree45cd1eb02ccb5ee5cbfd98d93f6197dd8db97544
parentd05101e80877c6b1c1d55170488e6ba2c525dbf5
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.
src/backend/utils/adt/datetime.c
src/test/regress/expected/interval.out
src/test/regress/sql/interval.sql