mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-17 21:01:33 +08:00
Make comparison of table in SQL code with physical table names case insensitive. Probably helps solving #895
This commit is contained in:
@ -5999,7 +5999,7 @@ var
|
|||||||
tblname := Conn.DeQuoteIdent(tblname);
|
tblname := Conn.DeQuoteIdent(tblname);
|
||||||
DBObjects := Conn.GetDBObjects(dbname);
|
DBObjects := Conn.GetDBObjects(dbname);
|
||||||
for Obj in DBObjects do begin
|
for Obj in DBObjects do begin
|
||||||
if (Obj.Name = tblname) and (Obj.NodeType in [lntTable, lntView]) then begin
|
if (Obj.Name.ToLowerInvariant = tblname.ToLowerInvariant) and (Obj.NodeType in [lntTable, lntView]) then begin
|
||||||
Columns := Obj.TableColumns;
|
Columns := Obj.TableColumns;
|
||||||
for Col in Columns do begin
|
for Col in Columns do begin
|
||||||
Proposal.InsertList.Add(Col.Name);
|
Proposal.InsertList.Add(Col.Name);
|
||||||
|
Reference in New Issue
Block a user