]> granicus.if.org Git - postgresql/commit
PL/Python: Fix crash when colnames() etc. called without result set
authorPeter Eisentraut <peter_e@gmx.net>
Sun, 15 Apr 2012 17:23:08 +0000 (20:23 +0300)
committerPeter Eisentraut <peter_e@gmx.net>
Sun, 15 Apr 2012 17:23:08 +0000 (20:23 +0300)
commitc03523ed3fc65e219068aff536330ce451f63ca7
treee940022faeb9fb921216028b3130fc37958f3bb2
parent4efbb7d04f3481da1aaf75630c1203203f400b66
PL/Python: Fix crash when colnames() etc. called without result set

The result object methods colnames() etc. would crash when called
after a command that did not produce a result set.  Now they throw an
exception.

discovery and initial patch by Jean-Baptiste Quenot
doc/src/sgml/plpython.sgml
src/pl/plpython/expected/plpython_spi.out
src/pl/plpython/plpy_resultobject.c
src/pl/plpython/sql/plpython_spi.sql