From: Bruce Momjian Date: Tue, 17 Mar 2009 18:39:39 +0000 (+0000) Subject: Improve zero-year comments. X-Git-Url: http://waps.l3s.uni-hannover.de/gitweb/?a=commitdiff_plain;h=1d628da93568264e90da2182cd1b26f09727a3f3;p=users%2Fsimon%2Fpostgres.git Improve zero-year comments. --- diff --git a/src/backend/utils/adt/datetime.c b/src/backend/utils/adt/datetime.c index a363c9a70e..7ca80d0674 100644 --- a/src/backend/utils/adt/datetime.c +++ b/src/backend/utils/adt/datetime.c @@ -2264,7 +2264,7 @@ ValidateDate(int fmask, bool is2digits, bool bc, struct pg_tm * tm) } else if (is2digits) { - /* allow 2-digit input for 1970-2069 AD; '0' or '00' is allowed */ + /* process 1 or 2-digit input as 1970-2069 AD, allow '0' and '00' */ if (tm->tm_year < 0) /* just paranoia */ return DTERR_FIELD_OVERFLOW; if (tm->tm_year < 70)