Modify the new to_timestamp implementation so that end-of-format-string
authorHeikki Linnakangas <[email protected]>
Mon, 1 Dec 2008 17:11:18 +0000 (17:11 +0000)
committerHeikki Linnakangas <[email protected]>
Mon, 1 Dec 2008 17:11:18 +0000 (17:11 +0000)
commita931282c881067ca3d70af31b97bd67b719c7c44
tree80f703320d63733f84bd39e9658fd8ac1284aeca
parent88a92c5fc4b75fdf54bbd1d358d7ea61383a6e5c
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