* use sametext instead of converting case

This commit is contained in:
Michaël Van Canneyt 2025-04-07 15:14:59 +02:00
parent e60cce05ee
commit 9cbc8f67f0

View File

@ -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 + ' , ';