Skip to content

Commit

Permalink
Ruleutils_17 SQL/JSON: Fix default ON ERROR behavior for JSON_TABLE
Browse files Browse the repository at this point in the history
Relevant PG commit:
postgres/postgres@446d5ad
446d5ad7ae7d3bf4fd08904ae54a6399cafb4e7d
  • Loading branch information
naisila committed Nov 10, 2024
1 parent efb0a6e commit b4c9579
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/distributed/deparser/ruleutils_17.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit b4c9579

Please sign in to comment.