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

pgsql: Set isnull for errm and sqlstate local variables when they're

From: heikki(at)postgresql(dot)org (Heikki Linnakangas)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Set isnull for errm and sqlstate local variables when they're
Date: 2009-02-27 10:27:45
Message-ID: 20090227102745.32AE67559ED@cvs.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Log Message:
-----------
Set isnull for errm and sqlstate local variables when they're free'd. Because
they are out of scope for any code after that anyway, leaving isnull true
should be harmless. However, PL/pgSQL Debugger doesn't seem to care about
the scoping and crashed, per report by Robert Walker (bug #4635). And it's
good to be tidy for debugging purposes too.

Fix in 8.3, 8.2 and 8.1 branches, CVS HEAD was fixed earlier already.

Analysis and fix by Ashesh Vashi and Dave Page.

Tags:
----
REL8_2_STABLE

Modified Files:
--------------
    pgsql/src/pl/plpgsql/src:
        pl_exec.c (r1.180.2.8 -> r1.180.2.9)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/pl/plpgsql/src/pl_exec.c?r1=1.180.2.8&r2=1.180.2.9)

pgsql-committers by date

Next:From: Heikki LinnakangasDate: 2009-02-27 10:27:54
Subject: pgsql: Set isnull for errm and sqlstate local variables when they're
Previous:From: Heikki LinnakangasDate: 2009-02-27 10:27:33
Subject: pgsql: Set isnull for errm and sqlstate local variables when they're

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