mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-02 00:10:31 +02:00
sqliteds: Ensure unique names in fielddefs
git-svn-id: trunk@32753 -
This commit is contained in:
parent
07ca0393ff
commit
6189686c6d
@ -237,7 +237,7 @@ begin
|
||||
AType := ftString;
|
||||
DataSize := DefaultStringSize;
|
||||
end;
|
||||
FieldDefs.Add(String(sqlite3_column_name(vm, i)), AType, DataSize);
|
||||
FieldDefs.Add(FieldDefs.MakeNameUnique(String(sqlite3_column_name(vm, i))), AType, DataSize);
|
||||
//Set the pchar2sql function
|
||||
case AType of
|
||||
ftString:
|
||||
|
@ -184,7 +184,7 @@ begin
|
||||
begin
|
||||
AType := ftString;
|
||||
end;
|
||||
FieldDefs.Add(String(ColumnNames[i]), AType, DataSize);
|
||||
FieldDefs.Add(FieldDefs.MakeNameUnique(String(ColumnNames[i])), AType, DataSize);
|
||||
//Set the pchar2sql function
|
||||
if AType in [ftString, ftMemo] then
|
||||
FGetSqlStr[i] := @Char2SQLStr
|
||||
|
Loading…
Reference in New Issue
Block a user