From: Amit Langote <amitlan@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: SQL/JSON: Fix default ON ERROR behavior for JSON_TABLE
Date: Fri, 06 Sep 2024 07:52:50 +0000
Message-ID: <E1smTlx-000NQ4-QO@gemulon.postgresql.org> (raw)
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 <jian.universality@gmail.com>
Discussion: https://postgr.es/m/CACJufxEo4sUjKCYtda0_qt9tazqqKPmF1cqhW9KBOUeJFqQd2g@mail.gmail.com
Backpatch-through: 17
Branch
------
REL_17_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/446d5ad7ae7d3bf4fd08904ae54a6399cafb4e7d
Modified Files
--------------
src/backend/parser/parse_expr.c | 4 ++--
src/backend/utils/adt/ruleutils.c | 2 +-
src/test/regress/expected/sqljson_jsontable.out | 22 ++++++++++++++++++++++
src/test/regress/sql/sqljson_jsontable.sql | 9 +++++++++
4 files changed, 34 insertions(+), 3 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-committers@postgresql.org
Cc: amitlan@postgresql.org, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: SQL/JSON: Fix default ON ERROR behavior for JSON_TABLE
In-Reply-To: <E1smTlx-000NQ4-QO@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox