]> granicus.if.org Git - postgresql/commit
Set isnull for errm and sqlstate local variables when they're free'd. Because
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 27 Feb 2009 10:27:53 +0000 (10:27 +0000)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 27 Feb 2009 10:27:53 +0000 (10:27 +0000)
commit1a5b7b0b57cd02e9b6aae5e46cb8f18ace7561bc
tree35537a49c705b8673477be64b740beb110bd11ad
parentf970cc9588fc0fe43c61f03e5fd4bd30f3d4d786
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