SQL/JSON: Fix default ON ERROR behavior for JSON_TABLE

Amit Langote <amitlan@postgresql.org>

Commit: bbd4c058a89b1e756eb646af89a4ef90f0df144e
Author: Amit Langote <amitlan@postgresql.org>
Date: 2024-09-06T04:25:53Z
Releases: 18.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