mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Fix wrong comparison of table and org_table in PMYSQL_FIELD. Found while looking for the cause of issue #1818
This commit is contained in:
@@ -9747,8 +9747,9 @@ var
|
||||
Obj: TDBObject;
|
||||
begin
|
||||
Field := FConnection.Lib.mysql_fetch_field_direct(FCurrentResults, Column);
|
||||
//Connection.Log(lcDebug, FColumnNames[Column]+': org_table:'+Field.org_table+ ' table:'+Field.table);
|
||||
|
||||
if Field.table^ <> Field.org_table^ then begin
|
||||
if Field.table <> Field.org_table then begin
|
||||
// Probably a VIEW, in which case we rely on the first column's table name.
|
||||
// TODO: This is unsafe when joining a view with a table/view.
|
||||
if Field.db <> '' then begin
|
||||
|
||||
Reference in New Issue
Block a user