pgsql: Reject year zero during datetime input, except when it's a

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Reject year zero during datetime input, except when it's a
Date: 2008-02-25 23:36:28
Message-ID: 20080225233628.67B61754108@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2008-02-26 02:21:34 Re: pgsql: Link postgres from all object files at once, to avoid the
Previous Message Tom Lane 2008-02-25 23:21:29 pgsql: Fix datetime input to behave correctly for Feb 29 in years BC.