small cleanup pl_exec.c

Started by Pavel Stehuleover 14 years ago2 messageshackers
Jump to latest
#1Pavel Stehule
pavel.stehule@gmail.com

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

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Pavel Stehule (#1)
Re: small cleanup pl_exec.c

Pavel Stehule <pavel.stehule@gmail.com> writes:

function exec_set_found uses a PointerGetDatum, should be BoolGetDatum

Applied, thanks.

regards, tom lane