Components for Delphi and C++ Builder.

Go to Russian forum
Go to EhLib.com
It is currently 27 Apr 2024, 20:22

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 31 Jul 2014, 14:31 
Offline

Joined: 10 Sep 2013, 15:50
Posts: 14
if the field definition is a auto increment field, the TMTDataFieldEh should have a AutoIncrement as True, but current code missed.

procedure TMTDataStructEh.BuildStructFromFieldDefs(FieldDefs: TFieldDefs);
var
i: Integer;
DataField: TMTDataFieldEh;
begin
MemTableData.DestroyTable;
for i := 0 to FieldDefs.Count-1 do
begin
DataField := CreateField(DefaultDataFieldClasses[FieldDefs[i].DataType]);

if FieldDefs[i].DataType=ftAutoInc then //<-----please add this line
DataField.AutoIncrement := True; //<-----please add this line


this bug is obvious, so no demo is needed :D


Top
 Profile  
 
PostPosted: 09 Aug 2014, 23:16 
Offline
Администратор

Joined: 22 Dec 2011, 20:19
Posts: 335
Hello

Code is added in the build EhLib 6.3 Build 6.3.184
Thank you for information.

Best regards
Admin

_________________
Best regards
Admin


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 71 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group