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 Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/c03523ed3fc65e219068aff536330ce451f63ca7 Modified Files -------------- doc/src/sgml/plpython.sgml | 8 ++++++++ src/pl/plpython/expected/plpython_spi.out | 28 ++++++++++++++++++---------- src/pl/plpython/plpy_resultobject.c | 19 +++++++++++++++++++ src/pl/plpython/sql/plpython_spi.sql | 7 ++++--- 4 files changed, 49 insertions(+), 13 deletions(-) -- Sent via pgsql-committers mailing list ([email protected]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers
