TVPlanIt: Fix crash of TBufDSDataStore with FPC 3.2+

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7911 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2020-11-30 20:48:19 +00:00
parent 72c74560de
commit dd2db96268

View File

@ -135,11 +135,12 @@ begin
CreateFieldDefs(ATableName, table.FieldDefs);
if FUseAutoInc then
table.FieldDefs[0].DataType := ftAutoInc;
table.CreateDataset;
end;
table.IndexDefs.Clear;
table.IndexDefs.Update;
CreateIndexDefs(ATableName, table.IndexDefs);
table.CreateDataset;
end else
table.Open;
end;
procedure TVpBufDSDatastore.CreateTables;