소스 검색

* use sametext instead of converting case

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

+ 1 - 2
packages/fcl-db/src/sqlite/sqliteds.pas

@@ -148,8 +148,7 @@ begin
     ColumnStr := UpperCase(String(ColumnNames[i + ColumnCount]));
     if (ColumnStr = 'INTEGER') or (ColumnStr = 'INT') then
     begin
-      if AutoIncrementKey and
-           (UpperCase(String(ColumnNames[i])) = UpperCase(PrimaryKey)) then
+      if AutoIncrementKey and SameText(String(ColumnNames[i]),PrimaryKey) then
       begin
         AType := ftAutoInc;
         FAutoIncFieldNo := i;