Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-hackers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group