git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5e49291)
Document that datetime year '0' is considered in a recent century, not
2009年3月17日 18:35:26 +0000 (18:35 +0000)
2009年3月17日 18:35:26 +0000 (18:35 +0000)
just '00'.


diff --git a/src/backend/utils/adt/datetime.c b/src/backend/utils/adt/datetime.c
index 46ae97373dfa817b636009027a899a0b2bf02d81..717ccd614945c000dcd3315101914871a5d60141 100644 (file)
--- 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.200 2009年01月01日 17:23:49 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/adt/datetime.c,v 1.201 2009年03月17日 18:35:26 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; 00 is allowed */
+ /* allow 2-digit input for 1970-2069 AD; '0' or '00' is allowed */
if (tm->tm_year < 0) /* just paranoia */
return DTERR_FIELD_OVERFLOW;
if (tm->tm_year < 70)
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /