SQL/JSON: Fix default ON ERROR behavior for JSON_TABLE Use EMPTY ARRAY instead of EMPTY.
This change does not affect the runtime behavior of JSON_TABLE(), which continues to return an empty relation ON ERROR. It only alters whether the default ON ERROR behavior is shown in the deparsed output. Reported-by: Jian He <[email protected]> Discussion: https://postgr.es/m/cacjufxeo4sujkcytda0_qt9tazqqkpmf1cqhw9kbouejfqq...@mail.gmail.com Backpatch-through: 17 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/565caaa79af9a6b3853b161b0652527e716326b8 Modified Files -------------- src/backend/parser/parse_expr.c | 4 ++-- src/backend/utils/adt/ruleutils.c | 2 +- src/test/regress/expected/sqljson_jsontable.out | 25 +++++++++++++++++++++++++ src/test/regress/sql/sqljson_jsontable.sql | 5 +++++ 4 files changed, 33 insertions(+), 3 deletions(-)
