pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: SQL/JSON: Fix default ON ERROR behavior for JSON_TABLE 4+ messages / 1 participants [nested] [flat]
* pgsql: SQL/JSON: Fix default ON ERROR behavior for JSON_TABLE @ 2024-09-06 03:07 Amit Langote <amitlan@postgresql.org> 0 siblings, 0 replies; 4+ messages in thread From: Amit Langote @ 2024-09-06 03:07 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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(-) ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: SQL/JSON: Fix default ON ERROR behavior for JSON_TABLE @ 2024-09-06 03:07 Amit Langote <amitlan@postgresql.org> 0 siblings, 0 replies; 4+ messages in thread From: Amit Langote @ 2024-09-06 03:07 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 ------ 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(-) ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: SQL/JSON: Fix default ON ERROR behavior for JSON_TABLE @ 2024-09-06 07:52 Amit Langote <amitlan@postgresql.org> 0 siblings, 0 replies; 4+ messages in thread From: Amit Langote @ 2024-09-06 07:52 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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(-) ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: SQL/JSON: Fix default ON ERROR behavior for JSON_TABLE @ 2024-09-06 07:53 Amit Langote <amitlan@postgresql.org> 0 siblings, 0 replies; 4+ messages in thread From: Amit Langote @ 2024-09-06 07:53 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 ------ master Details ------- https://git.postgresql.org/pg/commitdiff/bbd4c058a89b1e756eb646af89a4ef90f0df144e 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(-) ^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2024-09-06 07:53 UTC | newest] Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2024-09-06 03:07 pgsql: SQL/JSON: Fix default ON ERROR behavior for JSON_TABLE Amit Langote <amitlan@postgresql.org> 2024-09-06 03:07 pgsql: SQL/JSON: Fix default ON ERROR behavior for JSON_TABLE Amit Langote <amitlan@postgresql.org> 2024-09-06 07:52 pgsql: SQL/JSON: Fix default ON ERROR behavior for JSON_TABLE Amit Langote <amitlan@postgresql.org> 2024-09-06 07:53 pgsql: SQL/JSON: Fix default ON ERROR behavior for JSON_TABLE Amit Langote <amitlan@postgresql.org>
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