manual transaction
Posted: 12.10.2005, 17:06
I will work with manual transactions but there is as Problem:
The following code has been executed and all seems ok.
[syntax="delphi"]
TR0: TZIbSqlTransact;
procedure TMain.Button1Click(Sender: TObject);
begin
TR0.AutoCommit:=False;
TR0.StartTransaction;
..
do_anything..
..
TR0.COMMIT;
TR0.AutoCommit:=True;
end;
[/syntax]
If the Databse should be closed, i get this message:
„cannot disconnect database with open transactions ( 1 active)“
what is wrong?
The following code has been executed and all seems ok.
[syntax="delphi"]
TR0: TZIbSqlTransact;
procedure TMain.Button1Click(Sender: TObject);
begin
TR0.AutoCommit:=False;
TR0.StartTransaction;
..
do_anything..
..
TR0.COMMIT;
TR0.AutoCommit:=True;
end;
[/syntax]
If the Databse should be closed, i get this message:
„cannot disconnect database with open transactions ( 1 active)“
what is wrong?