Reject combining "epoch" and "infinity" with other datetime fields.
Tom Lane <tgl@sss.pgh.pa.us>
Reject combining "epoch" and "infinity" with other datetime fields. Datetime input formerly accepted combinations such as '1995-08-06 infinity', but this seems like a clear error. Reject any combination of regular y/m/d/h/m/s fields with these special tokens. Joseph Koshakow, reviewed by Keisuke Kuroda and myself Discussion: https://postgr.es/m/CAAvxfHdm8wwXwG_FFRaJ1nTHiMWb7YXS2YKCzCt8Q0a2ZoMcHg@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/datetime.c | modified | +25 −15 |
| src/test/regress/expected/horology.out | modified | +85 −0 |
| src/test/regress/sql/horology.sql | modified | +23 −0 |
Discussion
- Date-time extraneous fields with reserved keywords 10 messages · 2022-12-11 → 2023-03-09