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

Relevant PG commit:
5067c230b8
5067c230b8ee42a01cc77dc5745bc3a78f393af3
pull/7725/head
naisila 2024-11-10 23:49:22 +03:00
parent b988af3c35
commit 330e886f79
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))