aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/jsonpath_exec.c
diff options
context:
space:
mode:
authorAlexander Korotkov <akorotkov@postgresql.org>2020-09-29 11:00:22 +0300
committerAlexander Korotkov <akorotkov@postgresql.org>2020-09-29 11:00:22 +0300
commitc2aa562ea5c2bf28c347503731434f08097cf1e5 (patch)
treed0bbfb591c1994ce932136d1fec2f434dd67f436 /src/backend/utils/adt/jsonpath_exec.c
parentfd26f78231830b20d8b5f8391f97d2ccebd492b7 (diff)
downloadpostgresql-c2aa562ea5c2bf28c347503731434f08097cf1e5.tar.gz
postgresql-c2aa562ea5c2bf28c347503731434f08097cf1e5.zip
Remove excess space from jsonpath .datetime() default format string
bffe1bd684 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
Diffstat (limited to 'src/backend/utils/adt/jsonpath_exec.c')
-rw-r--r--src/backend/utils/adt/jsonpath_exec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/utils/adt/jsonpath_exec.c b/src/backend/utils/adt/jsonpath_exec.c
index 0591c9effcb..31b88d67416 100644
--- a/src/backend/utils/adt/jsonpath_exec.c
+++ b/src/backend/utils/adt/jsonpath_exec.c
@@ -1837,11 +1837,11 @@ executeDateTimeMethod(JsonPathExecContext *cxt, JsonPathItem *jsp,
static const char *fmt_str[] =
{
"yyyy-mm-dd",
- "HH24:MI:SS TZH:TZM",
- "HH24:MI:SS TZH",
+ "HH24:MI:SSTZH:TZM",
+ "HH24:MI:SSTZH",
"HH24:MI:SS",
- "yyyy-mm-dd HH24:MI:SS TZH:TZM",
- "yyyy-mm-dd HH24:MI:SS TZH",
+ "yyyy-mm-dd HH24:MI:SSTZH:TZM",
+ "yyyy-mm-dd HH24:MI:SSTZH",
"yyyy-mm-dd HH24:MI:SS"
};