[Lazarus] SQLDB - Can't attach second SQLite database because transaction
dibo20 at wp.pl
Mon Jan 7 14:26:44 CET 2013
I want attach second databse to sqlite connection by command:
'+QuotedStr(GetConfigDir+'second.db')+' as mydb2');
But I get error that cannot attach database when on transaction. Even If I
commit transaction first, then ExecuteDirect start new one. How to get
BTW: Why SQLDB has logic "always in transaction"? Is it really perform in
large and complex ERP systems? What I was always taught that the
transaction should be used only in specific situtations (importing,
converting documents, FIFO, stock status etc) but whole time? Is not
dangerous? One programmer's mistake (e.g forget commit somewhere, or
transaction conflict etc.) and client can loose bunch of data.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Lazarus