Silence compiler warning introduced in 1edb3b491b
authorAmit Langote <[email protected]>
Thu, 25 Jan 2024 08:11:27 +0000 (17:11 +0900)
committerAmit Langote <[email protected]>
Thu, 25 Jan 2024 08:12:18 +0000 (17:12 +0900)
Reported-by: Richard Guo <[email protected]>
Discussion: https://postgr.es/m/CAMbWs48qEoe9Du5tuUxrkGQ6VC9oy+tQOORQ6jpob14-E1Z+jg@mail.gmail.com

src/backend/utils/adt/jsonfuncs.c

index 6bfaf3703de620ab8a606b39745a6ee2e3420922..1b0f494329278cf43fee7753f326f27c7b80f006 100644 (file)
@@ -2478,7 +2478,7 @@ jsonb_populate_record_valid(PG_FUNCTION_ARGS)
    (void) populate_record_worker(fcinfo, "jsonb_populate_record",
                                  false, true, (Node *) &escontext);
 
-   return BoolGetDatum(!SOFT_ERROR_OCCURRED(&escontext));
+   return BoolGetDatum(!escontext.error_occurred);
 }
 
 Datum