Subject | Re: [IBO] IB_cursor and Append |
---|---|
Author | Fabio Bot <fabiobot@yahoo.com.br> |
Post date | 2003-01-31T15:03:11Z |
Thanks Helen,
But, then the code sequence below is wrong?
with IB_Cursor do
begin
//*** here ib_transaction.started = false
Prepare;
//*** here ib_transaction.started = true
IB_Transaction.StartTransaction;
//... do something (Edit, Insert, ...)
IB_Transaction.Commit;
IB_Transaction.StartTransaction;
//... do something (Edit, Insert, ...)
IB_Transaction.Commit;
IB_Transaction.StartTransaction;
//... do something (Edit, Insert, ...)
IB_Transaction.Commit;
UnPrepare;
end;
Thanks,
Fábio.
>> if not IB_Transaction.InTransaction then <--- THIS MUST BE DONEBEFORE THE PREPARE.
But, then the code sequence below is wrong?
with IB_Cursor do
begin
//*** here ib_transaction.started = false
Prepare;
//*** here ib_transaction.started = true
IB_Transaction.StartTransaction;
//... do something (Edit, Insert, ...)
IB_Transaction.Commit;
IB_Transaction.StartTransaction;
//... do something (Edit, Insert, ...)
IB_Transaction.Commit;
IB_Transaction.StartTransaction;
//... do something (Edit, Insert, ...)
IB_Transaction.Commit;
UnPrepare;
end;
Thanks,
Fábio.