Menu

#1 Integer gets wrong size when creating a database

open
nobody
5
2012-11-03
2007-12-05
Anonymous
No

File: InstantMetadata.pas

Method:
procedure TInstantModelCatalog.InitTableMetadatas(ATableMetadatas:
TInstantTableMetadatas);

Sub method:
procedure AddMap(Map: TInstantAttributeMap);

Original code:
FieldMetadatas.AddFieldMetadata(InstantSequenceNoFieldName, dtInteger,
InstantDefaultFieldSize);

Should be changed to:
FieldMetadatas.AddFieldMetadata(InstantSequenceNoFieldName, dtInteger,
0);

In some cases the BDE fails to generate a Paradox table. This fixes this issue.

/Brian Andersen
European Software House

Discussion


Log in to post a comment.