diff --git a/packages/fcl-db/src/sqlite/sqlite3ds.pas b/packages/fcl-db/src/sqlite/sqlite3ds.pas index 3d8792d640..e0c9f3146a 100644 --- a/packages/fcl-db/src/sqlite/sqlite3ds.pas +++ b/packages/fcl-db/src/sqlite/sqlite3ds.pas @@ -188,7 +188,7 @@ begin ColumnStr := UpperCase(String(sqlite3_column_decltype(vm, i))); if (ColumnStr = 'INTEGER') or (ColumnStr = 'INT') then begin - if AutoIncrementKey and (UpperCase(String(sqlite3_column_name(vm, i))) = UpperCase(PrimaryKey)) then + if AutoIncrementKey and SameText(String(sqlite3_column_name(vm, i)),PrimaryKey) then begin AType := ftAutoInc; FAutoIncFieldNo := i;