]> granicus.if.org Git - postgresql/commit
Fix two small bugs in json's populate_record_worker
authorAndrew Dunstan <andrew@dunslane.net>
Mon, 4 May 2015 16:38:58 +0000 (12:38 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Mon, 4 May 2015 16:43:16 +0000 (12:43 -0400)
commit997066f4456c0fc582e62a50e296c77360212049
tree3fc90199ece7688f38e92008d81a529b4ecbe5f8
parent79edb298128b00161944b0e2cb6ef2460b717a7a
Fix two small bugs in json's populate_record_worker

The first bug is not releasing a tupdesc when doing an early return out
of the function. The second bug is a logic error in choosing when to do
an early return if given an empty jsonb object.

Bug reports from Pavel Stehule and Tom Lane respectively.

Backpatch to 9.4 where these were introduced.
src/backend/utils/adt/jsonfuncs.c