mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-11 11:29:29 +02:00
* Patch from Luiz Americo to set TStringField.Size:=dsMaxStringSize
git-svn-id: trunk@9250 -
This commit is contained in:
parent
079890d53e
commit
465b41fbfd
@ -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
|
||||
|
@ -173,8 +173,11 @@ begin
|
||||
end else
|
||||
begin
|
||||
AType := ftString;
|
||||
end;
|
||||
FieldDefs.Add(StrPas(ColumnNames[i]), AType, 0, False);
|
||||
end;
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user