[yunqa.de] DiSqlite - Intransaction bug?

  • From: "Clyde England" <clyde@xxxxxxxx>
  • To: yunqa@xxxxxxxxxxxxx
  • Date: Tue, 05 Jan 2010 15:16:44 +0800

Hi,

A while back in this list I pointed out how it is possible for "intransaction" 
to get off the rails and produce incorrect results

To fix this I was instructed to change:

function TDISQLite3Database.GetInTransaction: Boolean;
begin
  Result := FTransactionCount > 0;
end;

To

function TDISQLite3Database.GetInTransaction: Boolean;
begin
  Result := sqlite3_get_autocommit(Handle) = 0;
end;

This fixed my problem, and has worked well. However, I have just recently 
upgraded from Disqlite3 1.6.0 to DiSqlite3 2.1.1 and the code reverted back to 
the original (faulty?)

Is there any reason why this fix was not committed?

If not then can we please have this fix committed so I don't need to remember 
to make this change on every update

Thanks
Clyde


_______________________________________________
Delphi Inspiration mailing list
yunqa@xxxxxxxxxxxxx
//www.freelists.org/list/yunqa



Other related posts: