Report Python errors from iterators with PLy_elog

Peter Eisentraut <peter_e@gmx.net>

Commit: 8f76324352986287c04832f8e6450d4d2952a030
Author: Peter Eisentraut <peter_e@gmx.net>
Date: 2011-03-07T21:47:43Z
Releases: 9.1.0
Report Python errors from iterators with PLy_elog

This improves reporting, as the error string now includes the actual
Python exception. As a side effect, this no longer sets the errcode to
ERRCODE_DATA_EXCEPTION, which might be considered a feature, as it's
not documented and not clear why iterator errors should be treated
differently.

Jan Urbański

Files

PathChange+/−
src/pl/plpython/plpython.c modified +1 −3