PL/Python: Fix crash when colnames() etc. called without result set

Peter Eisentraut <peter_e@gmx.net>

Commit: c03523ed3fc65e219068aff536330ce451f63ca7
Author: Peter Eisentraut <peter_e@gmx.net>
Date: 2012-04-15T17:23:08Z
Releases: 9.2.0
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