mirror of https://github.com/citusdata/citus.git
Ruleutils_17 SQL/JSON: Fix default ON ERROR behavior for JSON_TABLE
Relevant PG commit:
446d5ad7ae
446d5ad7ae7d3bf4fd08904ae54a6399cafb4e7d
pull/7725/head
parent
0dc10b6cb6
commit
6c6d57ff51
|
@ -8651,7 +8651,7 @@ get_json_table(TableFunc *tf, deparse_context *context, bool showimplicit)
|
||||||
get_json_table_columns(tf, castNode(JsonTablePathScan, tf->plan), context,
|
get_json_table_columns(tf, castNode(JsonTablePathScan, tf->plan), context,
|
||||||
showimplicit);
|
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");
|
get_json_behavior(jexpr->on_error, context, "ERROR");
|
||||||
|
|
||||||
if (PRETTY_INDENT(context))
|
if (PRETTY_INDENT(context))
|
||||||
|
|
Loading…
Reference in New Issue