small cleanup pl_exec.c

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: small cleanup pl_exec.c
Date: 2011-11-27 17:12:34
Message-ID: CAFj8pRDMsOTbDkSvJtSh7Gpprok6t+pXDNNc-gAAFmjgT6eaSg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2011-11-27 17:29:02 Re: GiST range-contained-by searches versus empty ranges
Previous Message Florian Weimer 2011-11-27 15:24:34 Large number of open(2) calls with bulk INSERT into empty table