Ruleutils_17 SQL/JSON: Fix default ON ERROR behavior for JSON_TABLE

Relevant PG commit:
446d5ad7ae
446d5ad7ae7d3bf4fd08904ae54a6399cafb4e7d
pull/7725/head
naisila 2024-11-10 23:59:22 +03:00
parent 0dc10b6cb6
commit 6c6d57ff51
1 changed files with 1 additions and 1 deletions

View File

@ -8651,7 +8651,7 @@ get_json_table(TableFunc *tf, deparse_context *context, bool showimplicit)
get_json_table_columns(tf, castNode(JsonTablePathScan, tf->plan), context,
showimplicit);
if (jexpr->on_error->btype != JSON_BEHAVIOR_EMPTY)
if (jexpr->on_error->btype != JSON_BEHAVIOR_EMPTY_ARRAY)
get_json_behavior(jexpr->on_error, context, "ERROR");
if (PRETTY_INDENT(context))