Hi
The documentation for SPI_execute_with_args:
http://www.postgresql.org/docs/current/static/spi-spi-execute-with-args.html
claims it returns the same value as SPI_execute, whereas it actually
calls SPI_execute_plan which can produce two additional error codes.
Regards
Ian Barwick
--
Ian Barwick http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services