mirror of
https://github.com/postgres/postgres.git
synced 2026-04-15 22:10:45 -04:00
Allow text timezone designations, e.g. "America/Chicago", when using the
ISO "T" timestamptz format.
This commit is contained in:
parent
7514208fbb
commit
3e1a373e2b
1 changed files with 10 additions and 0 deletions
|
|
@ -944,6 +944,16 @@ DecodeDateTime(char **field, int *ftype, int nf,
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case DTK_TIME:
|
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,
|
dterr = DecodeTime(field[i], fmask, INTERVAL_FULL_RANGE,
|
||||||
&tmask, tm, fsec);
|
&tmask, tm, fsec);
|
||||||
if (dterr)
|
if (dterr)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue