aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/funcs.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2007-02-08 18:38:03 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2007-02-08 18:38:03 +0000
commit3e94cf51d7f930e3fec09836d2b488189889a441 (patch)
treea38fb5e16f2c67bdf1da5830beba8ff0e10cbe94 /src/tutorial/funcs.c
parentdc80902bcc08e544afcf7514efcaf50b5bb49529 (diff)
downloadpostgresql-3e94cf51d7f930e3fec09836d2b488189889a441.tar.gz
postgresql-3e94cf51d7f930e3fec09836d2b488189889a441.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/tutorial/funcs.c')
0 files changed, 0 insertions, 0 deletions