소스 검색

* use sametext instead of converting case

Michaël Van Canneyt 5 달 전
부모
커밋
e60cce05ee
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/fcl-db/src/sqlite/sqlite3ds.pas

+ 1 - 1
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;