|
@@ -186,10 +186,14 @@ begin
|
|
|
end;
|
|
|
FieldDefs.Add(FieldDefs.MakeNameUnique(String(ColumnNames[i])), AType, DataSize);
|
|
|
//Set the pchar2sql function
|
|
|
- if AType in [ftString, ftMemo] then
|
|
|
- FGetSqlStr[i] := @Char2SQLStr
|
|
|
+ case AType of
|
|
|
+ ftString:
|
|
|
+ FGetSqlStr[i] := @Char2SQLStr;
|
|
|
+ ftMemo:
|
|
|
+ FGetSqlStr[i] := @Memo2SQLStr;
|
|
|
else
|
|
|
FGetSqlStr[i] := @Num2SQLStr;
|
|
|
+ end;
|
|
|
end;
|
|
|
sqlite_finalize(vm, nil);
|
|
|
{
|