Commit 4dbe76d0 authored by ramil@mysql.com's avatar ramil@mysql.com

Comment adjusted (see fix for #13545)

parent 63fa48c0
...@@ -2987,11 +2987,10 @@ find_field_in_table_ref(THD *thd, TABLE_LIST *table_list, ...@@ -2987,11 +2987,10 @@ find_field_in_table_ref(THD *thd, TABLE_LIST *table_list,
Check that the table and database that qualify the current field name Check that the table and database that qualify the current field name
are the same as the table reference we are going to search for the field. are the same as the table reference we are going to search for the field.
We exclude from the test below NATURAL/USING joins and any nested join Exclude from the test below nested joins because the columns in a
because each column in such nested join generally originate from different tables. Nested joins
joins may potentially originate from a different table. However, base also have no table name, except when a nested join is a merge view
tables and views that are under some NATURAL/USING join are searched or an information schema table.
as usual base tables/views.
We include explicitly table references with a 'field_translation' table, We include explicitly table references with a 'field_translation' table,
because if there are views over natural joins we don't want to search because if there are views over natural joins we don't want to search
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment