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
Showing
- doc/src/sgml/plpython.sgml 8 additions, 0 deletionsdoc/src/sgml/plpython.sgml
- src/pl/plpython/expected/plpython_spi.out 18 additions, 10 deletionssrc/pl/plpython/expected/plpython_spi.out
- src/pl/plpython/plpy_resultobject.c 19 additions, 0 deletionssrc/pl/plpython/plpy_resultobject.c
- src/pl/plpython/sql/plpython_spi.sql 4 additions, 3 deletionssrc/pl/plpython/sql/plpython_spi.sql
Loading
Please register or sign in to comment