Workaround: make Zeos work with less imaginative column names. Fixes issue #545.

Extremely imaginative names can still fail (think ZEOS_RESERVED etc).
This commit is contained in:
rosenfield.albert
2008-06-13 15:22:02 +00:00
parent 505cf7b443
commit c265dd2f94

View File

@@ -1459,6 +1459,11 @@ begin
FName := Format('%s_%d', [FieldName, J]);
end;
// Workaround for bug in DB.pas:
// Don't crash when a field name like 'FIELD2' is used.
// Test case: http://code.google.com/p/heidisql/issues/detail?id=545#c3
FieldDefs.DataSet.Name := 'ZEOS_RESERVED';
with TFieldDef.Create(FieldDefs, FName, FieldType,
Size, False, I) do
begin