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

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

pgsql-patches by date

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

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