projects
/
users
/
c2main
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7514208
)
Allow text timezone designations, e.g. "America/Chicago", when using the
author
Bruce Momjian
<bruce@momjian.us>
Sat, 25 Aug 2012 21:44:53 +0000
(17:44 -0400)
committer
Bruce Momjian
<bruce@momjian.us>
Sat, 25 Aug 2012 21:44:53 +0000
(17:44 -0400)
ISO "T" timestamptz format.
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 26c6742e8b10d8476589873cbcb38f25633079c9..c29b8e1019168d5c610b63da6f88526977e49217 100644
(file)
--- a/
src/backend/utils/adt/datetime.c
+++ b/
src/backend/utils/adt/datetime.c
@@
-944,6
+944,16
@@
DecodeDateTime(char **field, int *ftype, int nf,
break;
case DTK_TIME:
+ /*
+ * This might be an ISO time following a "t" field.
+ */
+ if (ptype != 0)
+ {
+ /* Sanity check; should not fail this test */
+ if (ptype != DTK_TIME)
+ return DTERR_BAD_FORMAT;
+ ptype = 0;
+ }
dterr = DecodeTime(field[i], fmask, INTERVAL_FULL_RANGE,
&tmask, tm, fsec);
if (dterr)