[GENERAL] how to use SAVEPOINT in stored function

2005-12-05 Thread Frank . Motzkat
Hi community, I would like using savepoints in my stored functions but I always get the error ERROR: SPI_execute_plan failed executing query "SAVEPOINT my_savepoint": SPI_ERROR_TRANSACTION CONTEXT: PL/pgSQL function "savepoint_test" line 3 at SQL statement My test function can be found below

[GENERAL] how to use SAVEPOINT in stored function

2005-12-05 Thread Frank . Motzkat
Hi community, I would like using savepoints in my stored functions but I always get the error ERROR:  SPI_execute_plan failed executing query "SAVEPOINT my_savepoint": SPI_ERROR_TRANSACTION CONTEXT:  PL/pgSQL function "savepoint_test" line 3 at SQL statement My test function can be found below.

[GENERAL] declare function with IN and OUT parameter as well as refcursor

2005-11-24 Thread Frank Motzkat/IC3S AG
Hi community,   I would like to declare a function with IN and OUT parameters as well as a refcursor as return value. For example something like this:   This doesn’t work. It gives the compilation error ‘ERROR:  function result type must be integer because of OUT parameters’ CREATE OR