Răsfoiți Sursa

* use sametext instead of converting case

Michaël Van Canneyt 5 luni în urmă
părinte
comite
9cbc8f67f0
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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 + ' , ';