Fix transformJsonBehavior
authorAndrew Dunstan <[email protected]>
Thu, 14 Apr 2022 12:57:09 +0000 (08:57 -0400)
committerAndrew Dunstan <[email protected]>
Thu, 14 Apr 2022 13:24:22 +0000 (09:24 -0400)
commitfcdb35c32ac70a113c134a66daf9ba28523ff32b
tree5970643f7b8a9810581c3eb664e1b103ccef0374
parentcd4868a5700fadf5a840d44686658517433b338c
Fix transformJsonBehavior

Commit 1a36bc9dba8 conained some logic that was a little opaque and
could have involved a NULL dereference, as complained about by Coverity.
Make the logic more transparent and in doing so avoid the NULL
dereference.
src/backend/parser/parse_expr.c