Add missing initialization in transformJsonFuncExpr()

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 <er@xs4all.nl>
Discussion: https://postgr.es/m/254b2fa2-2f6b-a30a-20ee-21f8a2c12a50@xs4all.nl
This commit is contained in:
Amit Langote 2024-04-04 22:01:13 +09:00
parent 2f6e78b061
commit 6f4d63e989
1 changed files with 1 additions and 0 deletions

View File

@ -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);