projects
/
users
/
simon
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fdeffd4
)
Improve zero-year comments.
author
Bruce Momjian
<bruce@momjian.us>
Tue, 17 Mar 2009 18:39:39 +0000
(18:39 +0000)
committer
Bruce Momjian
<bruce@momjian.us>
Tue, 17 Mar 2009 18:39:39 +0000
(18:39 +0000)
src/backend/utils/adt/datetime.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/utils/adt/datetime.c
b/src/backend/utils/adt/datetime.c
index a363c9a70ec580fdb1739acec01cd73b90a750b3..7ca80d067420109bcfdae085e0829942a8e6c4b9 100644
(file)
--- 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)