Use data-type specific conversion functions also in plpy.execute

Peter Eisentraut <peter_e@gmx.net>

Commit: 12c2f2f66c2d37a951cdf01049d74c520f26e7f9
Author: Peter Eisentraut <peter_e@gmx.net>
Date: 2010-03-18T13:23:57Z
Releases: 9.0.0
Use data-type specific conversion functions also in plpy.execute

In PLy_spi_execute_plan, use the data-type specific Python-to-PostgreSQL
conversion function instead of passing everything through InputFunctionCall
as a string.  The equivalent fix was already done months ago for function
parameters and return values, but this other gateway between Python and
PostgreSQL was apparently forgotten.  As a result, data types that need
special treatment, such as bytea, would misbehave when used with
plpy.execute.

Files