pgsql: Reject year zero during datetime input, except when it's a - Mailing list pgsql-committers

From tgl@postgresql.org (Tom Lane)
Subject pgsql: Reject year zero during datetime input, except when it's a
Date
Msg-id 20080225233628.67B61754108@cvs.postgresql.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
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.

Modified Files:
--------------
    pgsql/src/backend/utils/adt:
        datetime.c (r1.186 -> r1.187)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/datetime.c?r1=1.186&r2=1.187)

pgsql-committers by date:

Previous
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Fix datetime input to behave correctly for Feb 29 in years BC.
Next
From: Tom Lane
Date:
Subject: Re: pgsql: Link postgres from all object files at once, to avoid the