From 97e7f635adce94fa544535d7285aee11dd644e14 Mon Sep 17 00:00:00 2001
From: Bruce Momjian <bruce@momjian.us>
Date: Tue, 17 Mar 2009 18:39:39 +0000
Subject: [PATCH] Improve zero-year comments.

---
 src/backend/utils/adt/datetime.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/backend/utils/adt/datetime.c b/src/backend/utils/adt/datetime.c
index 717ccd61494..b1f606fecca 100644
--- a/src/backend/utils/adt/datetime.c
+++ b/src/backend/utils/adt/datetime.c
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *	  $PostgreSQL: pgsql/src/backend/utils/adt/datetime.c,v 1.201 2009/03/17 18:35:26 momjian Exp $
+ *	  $PostgreSQL: pgsql/src/backend/utils/adt/datetime.c,v 1.202 2009/03/17 18:39:39 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -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)
-- 
GitLab