Make to_timestamp and friends skip leading spaces before an integer field,
commit5507a782a4b13e04f4ac64edc69957e7e55cde9b
authortgl <tgl>
Mon, 22 Jun 2009 17:54:30 +0000 (22 17:54 +0000)
committertgl <tgl>
Mon, 22 Jun 2009 17:54:30 +0000 (22 17:54 +0000)
treec7306c0765b1f699556f29e78ab9932d4e000397
parenteaa3a16ae8d2ae0fdd329a83db2bcbb29a0d2a47
Make to_timestamp and friends skip leading spaces before an integer field,
even when not in FM mode.  This improves compatibility with Oracle and with
our pre-8.4 behavior, as per bug #4862.

Brendan Jurd

Add a couple of regression test cases for this.  In passing, get rid of the
labeling of the individual test cases; doesn't seem to be good for anything
except causing extra work when inserting a test...

Tom Lane
src/backend/utils/adt/formatting.c
src/test/regress/expected/horology.out
src/test/regress/sql/horology.sql