diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2007-02-08 18:37:52 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2007-02-08 18:37:52 +0000 |
commit | cd0d50466f5e85d4a4a1df27abf228110075b2d5 (patch) | |
tree | 9242cd3d5b415a5b2c5650f3a1aae6a17d64a026 /src/include/postgres.h | |
parent | c0190adff98ed85bc8c203d09d152c73c6a8204f (diff) | |
download | postgresql-cd0d50466f5e85d4a4a1df27abf228110075b2d5.tar.gz postgresql-cd0d50466f5e85d4a4a1df27abf228110075b2d5.zip |
Rearrange use of plpgsql_add_initdatums() so that only the parsing of a
DECLARE section needs to know about it. Formerly, everyplace besides DECLARE
that created variables needed to do "plpgsql_add_initdatums(NULL)" to prevent
those variables from being sucked up as part of a subsequent DECLARE block.
This is obviously error-prone, and in fact the SQLSTATE/SQLERRM patch had
failed to do it for those two variables, leading to the bug recently exhibited
by Asif Ali Rehman: a DECLARE within an exception handler tried to reinitialize
SQLERRM.
Although the SQLSTATE/SQLERRM patch isn't in any pre-8.1 branches, and so
I can't point to a demonstrable failure there, it seems wise to back-patch
this into the older branches anyway, just to keep the logic similar to HEAD.
Diffstat (limited to 'src/include/postgres.h')
0 files changed, 0 insertions, 0 deletions