summaryrefslogtreecommitdiff
path: root/src/backend/regex/regprefix.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2020-12-21 13:11:30 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2020-12-21 13:11:30 -0500
commitedcdbc44eed2eae5c7b40a051998e32ecf4f8f12 (patch)
treefcfa77dc67619fadc88969b3cb73d3b3745af265 /src/backend/regex/regprefix.c
parent7414a0517e82c66795929275899d66a24acd39a8 (diff)
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/regex/regprefix.c')
0 files changed, 0 insertions, 0 deletions