Content-Length: 268979 | pFad | http://github.com/postgrespro/postgres/commit/3e1a373e2b102b43faa8bbc4841f7511174e1166

C6 Allow text timezone designations, e.g. "America/Chicago", when using the · postgrespro/postgres@3e1a373 · GitHub
Skip to content

Commit 3e1a373

Browse files
committed
Allow text timezone designations, e.g. "America/Chicago", when using the
ISO "T" timestamptz format.
1 parent 7514208 commit 3e1a373

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/backend/utils/adt/datetime.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -944,6 +944,16 @@ DecodeDateTime(char **field, int *ftype, int nf,
944944
break;
945945

946946
case DTK_TIME:
947+
/*
948+
* This might be an ISO time following a "t" field.
949+
*/
950+
if (ptype != 0)
951+
{
952+
/* Sanity check; should not fail this test */
953+
if (ptype != DTK_TIME)
954+
return DTERR_BAD_FORMAT;
955+
ptype = 0;
956+
}
947957
dterr = DecodeTime(field[i], fmask, INTERVAL_FULL_RANGE,
948958
&tmask, tm, fsec);
949959
if (dterr)

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/3e1a373e2b102b43faa8bbc4841f7511174e1166

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy