Modify the new to_timestamp implementation so that end-of-format-string
commit42cd6fe1611496453703746550f5ed2233865c17
authorheikki <heikki>
Mon, 1 Dec 2008 17:11:18 +0000 (1 17:11 +0000)
committerheikki <heikki>
Mon, 1 Dec 2008 17:11:18 +0000 (1 17:11 +0000)
treeb1efe7769cd882367ec76a4f5b8d03d91e57811b
parentdc966e12588d979ffab1c32084c6d1738bd5c449
Modify the new to_timestamp implementation so that end-of-format-string
is treated like a non-digit separator. This fixes the inconsistency in
examples like:

to_timestamp('2008-01-2', 'YYYY-MM-DD') -- didn't work

and

to_timestamp('2008-1-02', 'YYYY-MM-DD') -- did work
src/backend/utils/adt/formatting.c