aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/functioncmds.c
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2015-05-22 10:21:41 -0400
committerAndrew Dunstan <andrew@dunslane.net>2015-05-22 10:31:29 -0400
commit9b74f32cdbff8b9be47fc69164eae552050509ff (patch)
tree3713185bffdec59fa97fb498c737448a76c1149e /src/backend/commands/functioncmds.c
parent7d0d2b8da1fee13e473495ffdfc7d642b37ebd63 (diff)
downloadpostgresql-9b74f32cdbff8b9be47fc69164eae552050509ff.tar.gz
postgresql-9b74f32cdbff8b9be47fc69164eae552050509ff.zip
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.
Diffstat (limited to 'src/backend/commands/functioncmds.c')
0 files changed, 0 insertions, 0 deletions