]> granicus.if.org Git - postgresql/commit
Fix WHERE CURRENT OF to work as designed within plpgsql. The argument
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 9 Nov 2009 02:36:59 +0000 (02:36 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 9 Nov 2009 02:36:59 +0000 (02:36 +0000)
commit2ace38d226246b83e5cc4d8f4063a82a485ddc95
tree5ba7f075efde9d793b927253f28b5802c6806322
parent39bd3fd1db6f3aa3764d4a1bebcd71c4e9c00281
Fix WHERE CURRENT OF to work as designed within plpgsql.  The argument
can be the name of a plpgsql cursor variable, which formerly was converted
to $N before the core parser saw it, but that's no longer the case.
Deal with plain name references to plpgsql variables, and add a regression
test case that exposes the failure.
src/backend/executor/execCurrent.c
src/backend/parser/gram.y
src/backend/parser/parse_expr.c
src/test/regress/expected/plpgsql.out
src/test/regress/sql/plpgsql.sql