PLPGSQL OID Bug - Mailing list pgsql-patches

From Kevin McArthur
Subject PLPGSQL OID Bug
Date
Msg-id 006801c592eb$e12c64c0$0701a8c0@kdesktop
Whole thread Raw
Responses Re: PLPGSQL OID Bug
List 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;
Attachment

pgsql-patches by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: [HACKERS] Autovacuum loose ends
Next
From: Tom Lane
Date:
Subject: Re: [HACKERS] Autovacuum loose ends