pgsql: Set isnull for errm and sqlstate local variables when they're - Mailing list pgsql-committers

From heikki@postgresql.org (Heikki Linnakangas)
Subject pgsql: Set isnull for errm and sqlstate local variables when they're
Date
Msg-id 20090227102733.EB2C17559ED@cvs.postgresql.org
Whole thread Raw
List 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_3_STABLE

Modified Files:
--------------
    pgsql/src/pl/plpgsql/src:
        pl_exec.c (r1.202.2.3 -> r1.202.2.4)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/pl/plpgsql/src/pl_exec.c?r1=1.202.2.3&r2=1.202.2.4)

pgsql-committers by date:

Previous
From: petere@postgresql.org (Peter Eisentraut)
Date:
Subject: pgsql: Add the long options to the psql --help display, where they were
Next
From: heikki@postgresql.org (Heikki Linnakangas)
Date:
Subject: pgsql: Set isnull for errm and sqlstate local variables when they're