Hello experts, I try to do an update together with a RETURNING
clause but without success (postgresql 9.1 on CentOS 6.2), the returned data can be multiple rows (not only one
row expected like in src/interfaces/ecpg/test/sql/insupd.pgc): 1: EXEC SQL DECLARE cur CURSOR FOR UPDATE t set a=0
where a=3 RETURNING b; This fails (ecpg fails) with: ERROR: syntax error at
or near "t” 2: char *stmt = “UPDATE t set a=0 where a=3
RETURNING b” EXEC SQL PREPARE stmt1 FROM :stmt; EXEC SQL DECLARE cur CURSOR FOR stmt1; This fails (sql fails in the server) with: syntax
error at or near "UPDATE" at character 24 What is the proper way to do that in pgc or is this
not possible? Kind regards, Michael WINCOR NIXDORF International GmbH |