From: | Amit Langote <amitlan(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: SQL/JSON: Fix default ON ERROR behavior for JSON_TABLE |
Date: | 2024-09-06 07:52:50 |
Message-ID: | E1smTlx-000NQ4-QO@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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(dot)universality(at)gmail(dot)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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Amit Langote | 2024-09-06 07:53:03 | pgsql: SQL/JSON: Fix JSON_TABLE() column deparsing |
Previous Message | Amit Langote | 2024-09-06 04:29:59 | Re: pgsql: SQL/JSON: Avoid initializing unnecessary ON ERROR / ON EMPTY ste |