Tweak SPI_cursor_open to allow INSERT/UPDATE/DELETE RETURNING; this was

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

Commit: 3f8db37c2f1eeeffd9dae3189b783a463f56fe77
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2006-08-12T20:05:56Z
Releases: 8.2.0
Tweak SPI_cursor_open to allow INSERT/UPDATE/DELETE RETURNING; this was
merely a matter of fixing the error check, since the underlying Portal
infrastructure already handles it.  This in turn allows these statements
to be used in some existing plpgsql and plperl contexts, such as a
plpgsql FOR loop.  Also, do some marginal code cleanup in places that
were being sloppy about distinguishing SELECT from SELECT INTO.

Files