summaryrefslogtreecommitdiff
path: root/src/test/regress/sql/jsonb_jsonpath.sql
diff options
context:
space:
mode:
authorAmit Langote <amitlan@postgresql.org>2024-09-12 09:36:31 +0900
committerAmit Langote <amitlan@postgresql.org>2024-09-12 09:39:42 +0900
commit2c27346ed6848b6f5505f1c57078a7c1978ae042 (patch)
tree28c5c5f36a81d75106485c499ddee3fce001f526 /src/test/regress/sql/jsonb_jsonpath.sql
parent7f88e50b455d0db51847fbfe63e53802d4527f3a (diff)
SQL/JSON: Fix JSON_QUERY(... WITH CONDITIONAL WRAPPER)
Currently, when WITH CONDITIONAL WRAPPER is specified, array wrappers are applied even to a single SQL/JSON item if it is a scalar JSON value, but this behavior does not comply with the standard. To fix, apply wrappers only when there are multiple SQL/JSON items in the result. Reported-by: Peter Eisentraut <peter@eisentraut.org> Author: Peter Eisentraut <peter@eisentraut.org> Author: Amit Langote <amitlangote09@gmail.com> Reviewed-by: Andrew Dunstan <andrew@dunslane.net> Discussion: https://postgr.es/m/8022e067-818b-45d3-8fab-6e0d94d03626%40eisentraut.org Backpatch-through: 17
Diffstat (limited to 'src/test/regress/sql/jsonb_jsonpath.sql')
0 files changed, 0 insertions, 0 deletions