Skip to content

Commit 6f4d63e

Browse files
committed
Add missing initialization in transformJsonFuncExpr()
de36004 added some code for the new JSON_TABLE_OP to that function but missed to initialize the default_format variable. Reported-by: Erik Rijkers <er@xs4all.nl> Discussion: https://postgr.es/m/254b2fa2-2f6b-a30a-20ee-21f8a2c12a50@xs4all.nl
1 parent 2f6e78b commit 6f4d63e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/backend/parser/parse_expr.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4272,6 +4272,7 @@ transformJsonFuncExpr(ParseState *pstate, JsonFuncExpr *func)
42724272
break;
42734273
case JSON_TABLE_OP:
42744274
func_name = "JSON_TABLE";
4275+
default_format = JS_FORMAT_JSONB;
42754276
break;
42764277
default:
42774278
elog(ERROR, "invalid JsonFuncExpr op %d", (int) func->op);

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