Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2006-01

Patch to sqliteds and db units

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

pascalive

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

Reply by email