]> granicus.if.org Git - postgresql/commit
Clean up a couple of weird corner cases in interval parsing: make -yyyy-mm be
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 16 Sep 2008 22:31:21 +0000 (22:31 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 16 Sep 2008 22:31:21 +0000 (22:31 +0000)
commitb73c0c2a51500d52fcf0eb69100a701cc2273c2e
tree9c9f2f31f627c393173879de3d260afa4dee04aa
parent30df79a70b891626625ba53203db1d3262245612
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