Content-Length: 286003 | pFad | http://github.com/postgrespro/postgres/commit/c2aa562ea5c2bf28c347503731434f08097cf1e5

DC Remove excess space from jsonpath .datetime() default format string · postgrespro/postgres@c2aa562 · GitHub
Skip to content

Commit c2aa562

Browse files
committed
Remove excess space from jsonpath .datetime() default format string
bffe1bd has introduced jsonpath .datetime() method, but default formats for time and timestamp contain excess space between time and timezone. This commit removes this excess space making behavior of .datetime() method standard-compliant. Discussion: https://postgr.es/m/94321be0-cc96-1a81-b6df-796f437f7c66%40postgrespro.ru Author: Nikita Glukhov Backpatch-through: 13
1 parent fd26f78 commit c2aa562

File tree

3 files changed

+80
-80
lines changed

3 files changed

+80
-80
lines changed

src/backend/utils/adt/jsonpath_exec.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1837,11 +1837,11 @@ executeDateTimeMethod(JsonPathExecContext *cxt, JsonPathItem *jsp,
18371837
static const char *fmt_str[] =
18381838
{
18391839
"yyyy-mm-dd",
1840-
"HH24:MI:SS TZH:TZM",
1841-
"HH24:MI:SS TZH",
1840+
"HH24:MI:SSTZH:TZM",
1841+
"HH24:MI:SSTZH",
18421842
"HH24:MI:SS",
1843-
"yyyy-mm-dd HH24:MI:SS TZH:TZM",
1844-
"yyyy-mm-dd HH24:MI:SS TZH",
1843+
"yyyy-mm-dd HH24:MI:SSTZH:TZM",
1844+
"yyyy-mm-dd HH24:MI:SSTZH",
18451845
"yyyy-mm-dd HH24:MI:SS"
18461846
};
18471847

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/c2aa562ea5c2bf28c347503731434f08097cf1e5

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy