projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f6e78b
)
Add missing initialization in transformJsonFuncExpr()
author
Amit Langote
<
[email protected]
>
Thu, 4 Apr 2024 13:01:13 +0000
(22:01 +0900)
committer
Amit Langote
<
[email protected]
>
Thu, 4 Apr 2024 13:01:13 +0000
(22:01 +0900)
de3600452b
added some code for the new JSON_TABLE_OP to that function
but missed to initialize the default_format variable.
Reported-by: Erik Rijkers <
[email protected]
>
Discussion: https://postgr.es/m/
254b2fa2
-2f6b-a30a-20ee-
21f8a2c12a50
@xs4all.nl
src/backend/parser/parse_expr.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/parser/parse_expr.c
b/src/backend/parser/parse_expr.c
index 66bbba5c7fdb9b0bb7d8dd7d6c4bca8e337c1c5d..2f87255c47008270c01852a71c687032ca34f435 100644
(file)
--- a/
src/backend/parser/parse_expr.c
+++ b/
src/backend/parser/parse_expr.c
@@
-4272,6
+4272,7
@@
transformJsonFuncExpr(ParseState *pstate, JsonFuncExpr *func)
break;
case JSON_TABLE_OP:
func_name = "JSON_TABLE";
+ default_format = JS_FORMAT_JSONB;
break;
default:
elog(ERROR, "invalid JsonFuncExpr op %d", (int) func->op);