[fpc-devel] Patch to sqliteds and db units

pascalive pascalive at bol.com.br
Tue Jan 3 20:29:02 CET 2006


I'm sending two patches: sqliteds.zip which applies to sqlite*ds units and db.zip which applies to db unit. While the second is only minor performance tweaks, i recommend applying the first one since it fixes a bug that can lead to data loss 

Changes in sqliteds.zip:
- Change the way the database handle is retrieved
- Makes CreateBlobStream handle bmWrite mode properly
- Makes changes in Get/SetFieldData to adapt to recent changes in TDataset
- Changed the order of the updates (delete,insert,updates) to prevent data loss in some situations 
- Performance improvement to ApplyUpdates
- Small refactorings and some debug info tweaks

Changes in db.zip:
 - Make TField.GetData(Buffer: Pointer) and TField.SetData(Buffer: Pointer) 
inlined (reduces function call overhead without increasing size)
 - Changes the order of the "if" in GetData so it evaluates to true in most 
frequent situation

Luiz Americo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: db.zip
Type: application/zip
Size: 959 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20060103/c735ae59/attachment.zip>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sqliteds.zip
Type: application/zip
Size: 7456 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20060103/c735ae59/attachment-0001.zip>


More information about the fpc-devel mailing list