Re-allow input of Julian dates prior to 0001-01-01 AD.
Tom Lane <tgl@sss.pgh.pa.us>
Re-allow input of Julian dates prior to 0001-01-01 AD. This was unintentionally broken in 8.4 while tightening up checking of ordinary non-Julian date inputs to forbid references to "year zero". Per bug #5672 from Benjamin Gigot.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/datetime.c | modified | +25 −12 |
| src/test/regress/expected/horology.out | modified | +13 −0 |
| src/test/regress/sql/horology.sql | modified | +3 −0 |