Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc2aa562

Browse files
committed
Remove excess space from jsonpath .datetime() default format string
bffe1bd has introduced jsonpath .datetime() method, but default formatsfor time and timestamp contain excess space between time and timezone. Thiscommit removes this excess space making behavior of .datetime() methodstandard-compliant.Discussion:https://postgr.es/m/94321be0-cc96-1a81-b6df-796f437f7c66%40postgrespro.ruAuthor: Nikita GlukhovBackpatch-through: 13
1 parentfd26f78 commitc2aa562

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
staticconstchar*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)

[8]ページ先頭

©2009-2025 Movatter.jp