SQL/JSON: Fix default ON ERROR behavior for JSON_TABLE

Amit Langote <amitlan@postgresql.org>

Commit: 446d5ad7ae7d3bf4fd08904ae54a6399cafb4e7d
Author: Amit Langote <amitlan@postgresql.org>
Date: 2024-09-06T04:30:42Z
Releases: 17.0
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

Files

Discussion