mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 20:09:23 +02:00
* use sametext instead of converting case
This commit is contained in:
parent
c8d86b3fda
commit
d789128ec5
@ -148,8 +148,7 @@ begin
|
|||||||
ColumnStr := UpperCase(String(ColumnNames[i + ColumnCount]));
|
ColumnStr := UpperCase(String(ColumnNames[i + ColumnCount]));
|
||||||
if (ColumnStr = 'INTEGER') or (ColumnStr = 'INT') then
|
if (ColumnStr = 'INTEGER') or (ColumnStr = 'INT') then
|
||||||
begin
|
begin
|
||||||
if AutoIncrementKey and
|
if AutoIncrementKey and SameText(String(ColumnNames[i]),PrimaryKey) then
|
||||||
(UpperCase(String(ColumnNames[i])) = UpperCase(PrimaryKey)) then
|
|
||||||
begin
|
begin
|
||||||
AType := ftAutoInc;
|
AType := ftAutoInc;
|
||||||
FAutoIncFieldNo := i;
|
FAutoIncFieldNo := i;
|
||||||
|
Loading…
Reference in New Issue
Block a user