aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/explain.c
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:56 +0900
commite6c45d85dc168fb05b5ee5596a4de5167c9fe01f (patch)
treeacf249d689ab6800d4a23939b6d3b473f821fa8d /src/backend/commands/explain.c
parent77761ee5dddc0518235a51c533893e81e5f375b9 (diff)
downloadpostgresql-e6c45d85dc168fb05b5ee5596a4de5167c9fe01f.tar.gz
postgresql-e6c45d85dc168fb05b5ee5596a4de5167c9fe01f.zip
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/backend/commands/explain.c')
0 files changed, 0 insertions, 0 deletions