Fix restriction on specifying KEEP QUOTES in JSON_QUERY()

Amit Langote <amitlan@postgresql.org>

Commit: 561b74ddb8781f8c0511f6473c51fb51c8c6b087
Author: Amit Langote <amitlan@postgresql.org>
Date: 2024-04-08T07:02:29Z
Releases: 17.0
Fix restriction on specifying KEEP QUOTES in JSON_QUERY()

Currently, transformJsonFuncExpr() enforces some restrictions on
the combinations of QUOTES and WRAPPER clauses that can be specified
in JSON_QUERY().  The intent was to only prevent the useless
combination WITH WRAPPER OMIT QUOTES, but the coding prevented KEEP
QUOTES too, which is not helpful. Fix that.

Files