madorin / fibplus

FibPlus Library for Delphi and C++Builder. Data access components for Firebird & Interbase.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FIBDataSet.InsertRecord() doesn't work

walxo opened this issue · comments

This doesn't work:
pFIBDataSet1.InsertRecord([1, 1]);
(Nothing happened. No database insert. No any errors)

This works:
pFIBDataSet1.Insert;
pFIBDataSet1.SetFields([1, 1]);
pFIBDataSet1.Post;

Test_InsertRecord.zip

(I've attached test with source code and compiled executible. Database FB ver 3. fdb and fbk files and DDL as well.)

Bug still exists since version 7.5.

In FIBDataset:
For delphi up to XE2:
procedure InternalAddRecord(Buffer: Pointer; Append: Boolean); override;
for Delphi from XE3:
procedure InternalAddRecord(Buffer: TRecordBuffer; Append: Boolean);override;

Tested with XE2, XE5 and 10.4

Thank you, OLMIG62!