Make comparison of table in SQL code with physical table names case insensitive. Probably helps solving #895

This commit is contained in:
Ansgar Becker
2020-03-01 10:42:29 +01:00
parent 919be1d355
commit abc9f7063e

View File

@ -5999,7 +5999,7 @@ var
tblname := Conn.DeQuoteIdent(tblname);
DBObjects := Conn.GetDBObjects(dbname);
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;
for Col in Columns do begin
Proposal.InsertList.Add(Col.Name);