Set isnull for errm and sqlstate local variables when they're free'd. Because

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: faa0b6043bda6e913ae7f12fc1700f36633b642d
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2009-02-27T10:27:45Z
Releases: 8.2.13
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.

Files

PathChange+/−
src/pl/plpgsql/src/pl_exec.c modified +3 −1