]> granicus.if.org Git - postgresql/commit
Reject year zero during datetime input, except when it's a 2-digit year
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 25 Feb 2008 23:36:28 +0000 (23:36 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 25 Feb 2008 23:36:28 +0000 (23:36 +0000)
commitbc93919be787ac33fb5c35ae1cfdc1bfa54e2c5c
treef8d885780f10bf169eb0042fe24e40c6c9633b01
parent05506fc4afe95eca768853a9da35eb10e2126721
Reject year zero during datetime input, except when it's a 2-digit year
(then it means 2000 AD).  Formerly we silently interpreted this as 1 BC,
which at best is unwarranted familiarity with the implementation.
It's barely possible that some app somewhere expects the old behavior,
though, so we won't back-patch this into existing release branches.
src/backend/utils/adt/datetime.c