]> granicus.if.org Git - postgresql/commit
Fix an error when a set-returning function fails halfway through the execution
authorPeter Eisentraut <peter_e@gmx.net>
Tue, 18 Jan 2011 21:22:37 +0000 (23:22 +0200)
committerPeter Eisentraut <peter_e@gmx.net>
Tue, 18 Jan 2011 21:22:37 +0000 (23:22 +0200)
commit88047e59ba12479ef9adcaf3dee61b48566ce6eb
tree81de5b15c8804528371c29d8f696c450283eb22d
parent8995440e387846261d18e728f11adc528ccc5c1b
Fix an error when a set-returning function fails halfway through the execution

If the function using yield to return rows fails halfway, the iterator
stays open and subsequent calls to the function will resume reading
from it.  The fix is to unref the iterator and set it to NULL if there
has been an error.

Jan UrbaƄski
src/pl/plpython/plpython.c