PL/Python: Fix crash when colnames() etc. called without result set
Peter Eisentraut <peter_e@gmx.net>
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
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/plpython.sgml | modified | +8 −0 |
| src/pl/plpython/expected/plpython_spi.out | modified | +18 −10 |
| src/pl/plpython/plpy_resultobject.c | modified | +19 −0 |
| src/pl/plpython/sql/plpython_spi.sql | modified | +4 −3 |