From: Amit Langote <amitlan@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: SQL/JSON: Prevent ON EMPTY for EXISTS columns in JSON_TABLE()
Date: Fri, 28 Jun 2024 05:03:33 +0000
Message-ID: <E1sN3lk-003K40-CH@gemulon.postgresql.org> (raw)
SQL/JSON: Prevent ON EMPTY for EXISTS columns in JSON_TABLE()
Due to an oversight in de3600452b61, the ON EMPTY clause was
incorrectly allowed in the EXISTS column. Fix the grammar to prevent
this.
Discussion: https://postgr.es/m/CA%2BHiwqHh3YDXTpccgAo4CdfV9Mhy%2Bmg%3Doh6t8rfM5uLW1BJN4g%40mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/e3c1393efc31ac70de7b68e9a283ec3f2d7f9bd2
Modified Files
--------------
src/backend/parser/gram.y | 6 +++---
src/test/regress/expected/sqljson_jsontable.out | 5 +++++
src/test/regress/sql/sqljson_jsontable.sql | 3 +++
3 files changed, 11 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: Prevent ON EMPTY for EXISTS columns in JSON_TABLE()
In-Reply-To: <E1sN3lk-003K40-CH@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