浏览代码

* use sametext instead of converting case

Michaël Van Canneyt 5 月之前
父节点
当前提交
9cbc8f67f0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/fcl-db/src/sqlite/customsqliteds.pas

+ 1 - 1
packages/fcl-db/src/sqlite/customsqliteds.pas

@@ -1851,7 +1851,7 @@ begin
         DatabaseError('Field type "' + FieldTypeNames[FieldDefs[i].DataType] +
           '" not supported', Self);
       end;
-      if UpperCase(FieldDefs[i].Name) = UpperCase(FPrimaryKey) then
+      if SameText(FieldDefs[i].Name,FPrimaryKey) then
         SQLTemp := SQLTemp + ' PRIMARY KEY';
       if i <> FieldDefs.Count - 1 then
         SQLTemp := SQLTemp + ' , ';