Fix WHERE CURRENT OF to work as designed within plpgsql. The argument

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 2ace38d226246b83e5cc4d8f4063a82a485ddc95
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2009-11-09T02:36:59Z
Releases: 9.0.0
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.

Files