Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Silence compiler warning introduced in 1edb3b491b
authorAmit Langote <amitlan@postgresql.org>
Thu, 25 Jan 2024 08:11:27 +0000 (17:11 +0900)
committerAmit Langote <amitlan@postgresql.org>
Thu, 25 Jan 2024 08:12:18 +0000 (17:12 +0900)
Reported-by: Richard Guo <guofenglinux@gmail.com>
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