pgsql: Fix transformJsonBehavior

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix transformJsonBehavior
Date: 2022-04-14 13:26:08
Message-ID: E1nezU8-000U34-LY@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/fcdb35c32ac70a113c134a66daf9ba28523ff32b

Modified Files
--------------
src/backend/parser/parse_expr.c | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2022-04-14 14:27:27 pgsql: Improve a couple of sql/json error messages
Previous Message Michael Paquier 2022-04-14 06:11:10 pgsql: pageinspect: Fix handling of all-zero pages