ODAC 6.0.0.6: Problem with savepoint command.
Posted: Tue 24 Apr 2007 12:41
Hi Folks!
Thanks for the new release! I think I've found a problem in the latest build (it may exist in earlier builds as well.) Basically it looks like a command such as 'savepoint spname' won't actually run. Here's my test code:
OQuery.SQL.Text := 'savepoint sp1';
OQuery.Execute();
OQuery.SQL.Text := 'update bonus set ename = ''Testing''';
OQuery.Execute();
OQuery.SQL.Text := 'rollback to savepoint sp1';
OQuery.Execute();
The last statement fails with ORA-01086: savepoint 'SP1' never established.
I found the problem while testing the 'StrictUpdate' option of TOraSQL with a record that I knew would cause more than 1 record to be affected. The internal rollback to savepoint fails with the same 1086 error.
Any help is greatly appreciated!
-Mark
Thanks for the new release! I think I've found a problem in the latest build (it may exist in earlier builds as well.) Basically it looks like a command such as 'savepoint spname' won't actually run. Here's my test code:
OQuery.SQL.Text := 'savepoint sp1';
OQuery.Execute();
OQuery.SQL.Text := 'update bonus set ename = ''Testing''';
OQuery.Execute();
OQuery.SQL.Text := 'rollback to savepoint sp1';
OQuery.Execute();
The last statement fails with ORA-01086: savepoint 'SP1' never established.
I found the problem while testing the 'StrictUpdate' option of TOraSQL with a record that I knew would cause more than 1 record to be affected. The internal rollback to savepoint fails with the same 1086 error.
Any help is greatly appreciated!
-Mark