Set isnull for errm and sqlstate local variables when they're free'd. Because
authorHeikki Linnakangas <heikki@enterprisedb.com>
Fri, 27 Feb 2009 10:27:33 +0000 (10:27 +0000)
committerHeikki Linnakangas <heikki@enterprisedb.com>
Fri, 27 Feb 2009 10:27:33 +0000 (10:27 +0000)
commitf698b962f1112b26d549f6debde35f60f41a1fa4
treeaffeb6900e81003c5be5dd7490ea5653f6aca4eb
parentfd2747c9ba494c3a486fe2e55ca73d3d11b40ee8
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.
src/pl/plpgsql/src/pl_exec.c