Quote:
Originally Posted by trvishi
Can you paste the output of
SELECT connection_property ('CHAINED');
|
It's set to Off. Indeed when I set it to On (SquirrelSQL!Session!Transaction!Toggle Autocommit) my example works.
Thanks for pointing this out :-)
I googled around and found no clear statement that autocommit and updatable cursors don't mix...hmmm...also I thought this would work with Chained=Off:
Code:
begin transaction
declare testcur cursor for select * from testtable for update
open testcur
fetch testcur
update testtable set id = 33 where current of testcur
fetch testcur
update testtable set id = 33 where current of testcur
close testcur
commit transaction
...but I get the same message:
Code:
Error: SQL Anywhere Error -633: Update operation attempted on a read-only cursor
SQLState: 42W30
ErrorCode: 7732
J-L