OSDN Git Service

Re-allow input of Julian dates prior to 0001-01-01 AD.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 23 Sep 2010 03:48:07 +0000 (23:48 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 23 Sep 2010 03:48:07 +0000 (23:48 -0400)
commit9aae81527f3174b9b6fd6366f04435310903dab2
treec0ffd92d9d4c085b0639d29d1ddfc808d498af35
parent804b27613ba90bf67f903f114353d608e1d752d0
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.
src/backend/utils/adt/datetime.c
src/test/regress/expected/horology.out
src/test/regress/sql/horology.sql