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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy