small cleanup pl_exec.c - Mailing list pgsql-hackers

From Pavel Stehule
Subject small cleanup pl_exec.c
Date
Msg-id CAFj8pRDMsOTbDkSvJtSh7Gpprok6t+pXDNNc-gAAFmjgT6eaSg@mail.gmail.com
Whole thread Raw
Responses Re: small cleanup pl_exec.c
List pgsql-hackers
Hello,

function exec_set_found uses a PointerGetDatum, should be BoolGetDatum

*** pl_exec.c.orig    2011-11-24 12:51:45.000000000 +0100
--- pl_exec.c    2011-11-27 18:07:46.983118326 +0100
***************
*** 5860,5866 ****     PLpgSQL_var *var;
     var = (PLpgSQL_var *) (estate->datums[estate->found_varno]);
!     var->value = PointerGetDatum(state);     var->isnull = false; }

--- 5860,5866 ----     PLpgSQL_var *var;
     var = (PLpgSQL_var *) (estate->datums[estate->found_varno]);
!     var->value = BoolGetDatum(state);     var->isnull = false; }

Regards

Pavel Stehule


pgsql-hackers by date:

Previous
From: Florian Weimer
Date:
Subject: Large number of open(2) calls with bulk INSERT into empty table
Next
From: Tom Lane
Date:
Subject: Re: GiST range-contained-by searches versus empty ranges