using thsi script
Code: Select all
if not UniConnection1.Connected then
UniConnection1.Connect;
if UniTransaction1.Active then
UniTransaction1.Commit;
for i:=1 to 10000 do begin
//UniTransaction1.IsolationLevel := ilReadCommitted;
UniTransaction1.StartTransaction;
UNISQL1.SQL.Text := 'UPDATE TEST SET TEST=6 WHERE ID = 1';
UNISQL1.Execute;
UniTransaction1.Commit;
end;
If i create a SQL Script :
Code: Select all
COMMIT; SET TRANSACTION ISOLATION LEVEL READ COMMITTED WAIT;
UPDATE TEST SET TEST = 1 WHERE ID = 1; COMMIT; SET TRANSACTION ISOLATION LEVEL READ COMMITTED WAIT;
UPDATE TEST SET TEST = 1 WHERE ID = 1; COMMIT; SET TRANSACTION ISOLATION LEVEL READ COMMITTED WAIT;
UPDATE TEST SET TEST = 1 WHERE ID = 1; COMMIT; SET TRANSACTION ISOLATION LEVEL READ COMMITTED WAIT;
UPDATE TEST SET TEST = 1 WHERE ID = 1; COMMIT; SET TRANSACTION ISOLATION LEVEL READ COMMITTED WAIT;
* 10000 lines more of this*
both isql runs perfectly through the end.
What is the problem here?