pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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 03:07:14 +0000
Message-ID: <E1smPJZ-000LNh-7v@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/5067c230b8ee42a01cc77dc5745bc3a78f393af3

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(-)



view thread (4+ messages)  latest in thread

Message-ID: <E1smPJZ-000LNh-7v@gemulon.postgresql.org>
Permalink:  ../E1smPJZ-000LNh-7v@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1smPJZ-000LNh-7v@gemulon.postgresql.org

 · 

reply

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: <E1smPJZ-000LNh-7v@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