summaryrefslogtreecommitdiff
path: root/sql/item_subselect.cc
diff options
context:
space:
mode:
authorbell@sanja.is.com.ua <>2004-11-11 21:18:10 +0200
committerbell@sanja.is.com.ua <>2004-11-11 21:18:10 +0200
commit0ef0b030a54e7e1f233cbd735f18f64af618d819 (patch)
treeb838d2bae358ea54b828bff0e3dfb8a0faf1bc8e /sql/item_subselect.cc
parentaa6d99dd0a453762e81be251094f7538c974447c (diff)
parentc8d5f8991d15aec8ccd0e5eee12d9b18796d5ad8 (diff)
downloadmariadb-git-0ef0b030a54e7e1f233cbd735f18f64af618d819.tar.gz
merge
Diffstat (limited to 'sql/item_subselect.cc')
-rw-r--r--sql/item_subselect.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/sql/item_subselect.cc b/sql/item_subselect.cc
index f426f14a25f..16a08dca009 100644
--- a/sql/item_subselect.cc
+++ b/sql/item_subselect.cc
@@ -1422,7 +1422,7 @@ void subselect_uniquesubquery_engine::exclude()
table_map subselect_engine::calc_const_tables(TABLE_LIST *table)
{
table_map map= 0;
- for(; table; table= table->next_local)
+ for(; table; table= table->next_leaf)
{
TABLE *tbl= table->table;
if (tbl && tbl->const_table)
@@ -1435,14 +1435,13 @@ table_map subselect_engine::calc_const_tables(TABLE_LIST *table)
table_map subselect_single_select_engine::upper_select_const_tables()
{
return calc_const_tables((TABLE_LIST *) select_lex->outer_select()->
- table_list.first);
+ leaf_tables);
}
table_map subselect_union_engine::upper_select_const_tables()
{
- return calc_const_tables((TABLE_LIST *) unit->outer_select()->
- table_list.first);
+ return calc_const_tables((TABLE_LIST *) unit->outer_select()->leaf_tables);
}