1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-5.0

into sanja.is.com.ua:/home/bell/mysql/bk/work-test-5.0
This commit is contained in:
bell@sanja.is.com.ua
2005-04-30 01:43:35 +03:00
4 changed files with 84 additions and 1 deletions

View File

@ -2689,6 +2689,14 @@ find_field_in_tables(THD *thd, Item_ident *item, TABLE_LIST *tables,
{
if (found == WRONG_GRANT)
return (Field*) 0;
{
SELECT_LEX *current_sel= thd->lex->current_select;
SELECT_LEX *last_select= item->cached_table->select_lex;
/* check that field was resolved in outer query */
if (current_sel != last_select)
mark_select_range_as_dependent(thd, current_sel, last_select,
found, *ref, item);
}
return found;
}
}