Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit abcc0ab

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 059caf3 commit abcc0ab

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
@@ -1841,11 +1841,11 @@ executeDateTimeMethod(JsonPathExecContext *cxt, JsonPathItem *jsp,
18411841
static const char *fmt_str[] =
18421842
{
18431843
"yyyy-mm-dd",
1844-
"HH24:MI:SS TZH:TZM",
1845-
"HH24:MI:SS TZH",
1844+
"HH24:MI:SSTZH:TZM",
1845+
"HH24:MI:SSTZH",
18461846
"HH24:MI:SS",
1847-
"yyyy-mm-dd HH24:MI:SS TZH:TZM",
1848-
"yyyy-mm-dd HH24:MI:SS TZH",
1847+
"yyyy-mm-dd HH24:MI:SSTZH:TZM",
1848+
"yyyy-mm-dd HH24:MI:SSTZH",
18491849
"yyyy-mm-dd HH24:MI:SS"
18501850
};
18511851

0 commit comments

Comments
 (0)