Skip to content

Commit 97e7f63

Browse files
committed
Improve zero-year comments.
1 parent 07d7f47 commit 97e7f63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/utils/adt/datetime.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/utils/adt/datetime.c,v 1.201 2009/03/17 18:35:26 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/utils/adt/datetime.c,v 1.202 2009/03/17 18:39:39 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -2264,7 +2264,7 @@ ValidateDate(int fmask, bool is2digits, bool bc, struct pg_tm * tm)
22642264
}
22652265
else if (is2digits)
22662266
{
2267-
/* allow 2-digit input for 1970-2069 AD; '0' or '00' is allowed */
2267+
/* process 1 or 2-digit input as 1970-2069 AD, allow '0' and '00' */
22682268
if (tm->tm_year < 0) /* just paranoia */
22692269
return DTERR_FIELD_OVERFLOW;
22702270
if (tm->tm_year < 70)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy