Tighten up to_date/to_timestamp so that they are more likely to reject
Tom Lane <tgl@sss.pgh.pa.us>
Tighten up to_date/to_timestamp so that they are more likely to reject erroneous input, rather than silently producing bizarre results as formerly happened. Brendan Jurd
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/func.sgml | modified | +7 −2 |
| src/backend/utils/adt/formatting.c | modified | +506 −463 |
| src/test/regress/expected/horology.out | modified | +157 −0 |
| src/test/regress/expected/timestamp.out | modified | +0 −127 |
| src/test/regress/expected/timestamptz.out | modified | +0 −128 |
| src/test/regress/sql/horology.sql | modified | +70 −0 |
| src/test/regress/sql/timestamp.sql | modified | +0 −47 |
| src/test/regress/sql/timestamptz.sql | modified | +0 −47 |