* Patch from Luiz Americo to set TStringField.Size:=dsMaxStringSize

git-svn-id: trunk@9250 -
This commit is contained in:
joost 2007-11-14 18:33:40 +00:00
parent 079890d53e
commit 465b41fbfd
2 changed files with 9 additions and 3 deletions

View File

@ -169,7 +169,10 @@ begin
begin
AType := ftString;
end;
FieldDefs.Add(StrPas(sqlite3_column_name(vm,i)), AType, 0, False);
if AType = ftString then
FieldDefs.Add(StrPas(sqlite3_column_name(vm,i)), AType, dsMaxStringSize)
else
FieldDefs.Add(StrPas(sqlite3_column_name(vm,i)), AType);
//Set the pchar2sql function
if AType in [ftString,ftMemo] then
FGetSqlStr[i]:=@Char2SqlStr

View File

@ -174,7 +174,10 @@ begin
begin
AType := ftString;
end;
FieldDefs.Add(StrPas(ColumnNames[i]), AType, 0, False);
if AType = ftString then
FieldDefs.Add(StrPas(ColumnNames[i]), AType, dsMaxStringSize)
else
FieldDefs.Add(StrPas(ColumnNames[i]), AType);
//Set the pchar2sql function
if AType in [ftString,ftMemo] then
FGetSqlStr[i]:=@Char2SqlStr