OSDN Git Service

Modify the new to_timestamp implementation so that end-of-format-string
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 1 Dec 2008 17:11:18 +0000 (17:11 +0000)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 1 Dec 2008 17:11:18 +0000 (17:11 +0000)
commit7fb27531e8f51448f061a007534db67e0467a23e
tree3cabb43bf05b1fa154559b0b498ef6f5a68642a2
parentec543db77b6b72f24d0a637c4a4a419cf8311d0b
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