diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2020-12-21 13:11:29 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2020-12-21 13:11:29 -0500 |
commit | 38bef9e433eff68ffbfcf0a52ba7c2dc83c7466d (patch) | |
tree | 401159f8284ef7f63d82685dfc36dafd5d8cdcee /src/backend/utils/adt/acl.c | |
parent | def510c9fac03965840eca805c5877cea819eca2 (diff) | |
download | postgresql-38bef9e433eff68ffbfcf0a52ba7c2dc83c7466d.tar.gz postgresql-38bef9e433eff68ffbfcf0a52ba7c2dc83c7466d.zip |
Remove "invalid concatenation of jsonb objects" error case.
The jsonb || jsonb operator arbitrarily rejected certain combinations
of scalar and non-scalar inputs, while being willing to concatenate
other combinations. This was of course quite undocumented. Rather
than trying to document it, let's just remove the restriction,
creating a uniform rule that unless we are handling an object-to-object
concatenation, non-array inputs are converted to one-element arrays,
resulting in an array-to-array concatenation. (This does not change
the behavior for any case that didn't throw an error before.)
Per complaint from Joel Jacobson. Back-patch to all supported branches.
Discussion: https://postgr.es/m/163099.1608312033@sss.pgh.pa.us
Diffstat (limited to 'src/backend/utils/adt/acl.c')
0 files changed, 0 insertions, 0 deletions