postgresql/src
Andrew Dunstan 5302760a50 Unpack jbvBinary objects passed to pushJsonbValue
pushJsonbValue was accepting jbvBinary objects passed as WJB_ELEM or
WJB_VALUE data. While this succeeded, when those objects were later
encountered in attempting to convert the result to Jsonb, errors
occurred. With this change we ghuarantee that a JSonbValue constructed
from calls to pushJsonbValue does not contain any jbvBinary objects.
This cures a problem observed with jsonb_delete.

This means callers of pushJsonbValue no longer need to perform this
unpacking themselves. A subsequent patch will perform some cleanup in
that area.

The error was not triggered by any 9.4 code, but this is a publicly
visible routine, and so the error could be exercised by third party
code, therefore backpatch to 9.4.

Bug report from Peter Geoghegan, fix by me.
2015-05-22 10:21:41 -04:00
..
backend Unpack jbvBinary objects passed to pushJsonbValue 2015-05-22 10:21:41 -04:00
bin Fix more typos in comments. 2015-05-20 19:45:43 +03:00
common Reorganize our CRC source files again. 2015-04-14 17:03:42 +03:00
include Unpack jbvBinary objects passed to pushJsonbValue 2015-05-22 10:21:41 -04:00
interfaces Fix more typos in comments. 2015-05-20 19:45:43 +03:00
makefiles Fix parallel make risk with new check temp-install setup 2015-04-29 20:34:22 -04:00
pl Collection of typo fixes. 2015-05-20 16:56:22 +03:00
port Revert error-throwing wrappers for the printf family of functions. 2015-05-19 18:19:38 -04:00
template
test More fixes for lossy-GiST-distance-functions patch. 2015-05-21 19:47:48 -04:00
timezone Update time zone data files to tzdata release 2015d. 2015-05-15 19:35:29 -04:00
tools Fix more typos in comments. 2015-05-20 19:45:43 +03:00
tutorial
.gitignore
bcc32.mak
DEVELOPERS
Makefile
Makefile.global.in doc build: use unique Makefile variable to control temp install 2015-05-12 12:30:50 -04:00
Makefile.shlib Add transforms feature 2015-04-26 10:33:14 -04:00
nls-global.mk
win32.mak