Fix transformJsonBehavior

Andrew Dunstan <andrew@dunslane.net>

Commit: fcdb35c32ac70a113c134a66daf9ba28523ff32b
Author: Andrew Dunstan <andrew@dunslane.net>
Date: 2022-04-14T13:24:22Z
Releases: 15.0
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.

Files

PathChange+/−
src/backend/parser/parse_expr.c modified +8 −6