]> granicus.if.org Git - postgresql/commit
In a PL/pgSQL "FOR cursor" statement, the statements executed in the loop
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 21 Jun 2010 09:47:29 +0000 (09:47 +0000)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 21 Jun 2010 09:47:29 +0000 (09:47 +0000)
commit2e8a832dd6e2e75626d59565fbe9029be12771f7
treebe51b344895566849c469329704931e734b8ddff
parentf685cbbac849064a170375e41fc36ad517f6210c
In a PL/pgSQL "FOR cursor" statement, the statements executed in the loop
might close the cursor,  rendering the Portal pointer to it invalid.
Closing the cursor in the middle of the loop is not a very sensible thing
to do, but we must handle it gracefully and throw an error instead of
crashing.
src/pl/plpgsql/src/pl_exec.c