PLPGSQL OID Bug

From: "Kevin McArthur" <Kevin(at)StormTide(dot)ca>
To: <pgsql-patches(at)postgresql(dot)org>
Subject: PLPGSQL OID Bug
Date: 2005-07-27 20:43:41
Message-ID: 006801c592eb$e12c64c0$0701a8c0@kdesktop
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

This patch will resolve the oid retrieval bugs from plpgsql. There are however several other places where isnull=false was removed and replaced with isnull which may also need to be corrected.

Kevin McArthur
StormTide Digital Studios Inc.

Index: src/pl/plpgsql/src/pl_exec.c
===================================================================
RCS file: /projects/cvsroot/pgsql/src/pl/plpgsql/src/pl_exec.c,v
retrieving revision 1.149
diff -c -r1.149 pl_exec.c
*** src/pl/plpgsql/src/pl_exec.c 26 Jun 2005 22:05:42 -0000 1.149
--- src/pl/plpgsql/src/pl_exec.c 27 Jul 2005 20:38:25 -0000
***************
*** 1143,1149 ****
{
PLpgSQL_diag_item *diag_item = (PLpgSQL_diag_item *) lfirst(lc);
PLpgSQL_datum *var;
! bool isnull;

if (diag_item->target <= 0)
continue;
--- 1143,1149 ----
{
PLpgSQL_diag_item *diag_item = (PLpgSQL_diag_item *) lfirst(lc);
PLpgSQL_datum *var;
! bool isnull=false;

if (diag_item->target <= 0)
continue;

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2005-07-27 22:05:00 Re: [HACKERS] Autovacuum loose ends
Previous Message Alvaro Herrera 2005-07-27 20:26:14 Re: [HACKERS] Autovacuum loose ends