diff options
author | unknown <bell@sanja.is.com.ua> | 2003-11-02 16:31:22 +0200 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2003-11-02 16:31:22 +0200 |
commit | 1e1d7b17b43907f48ba72cc18cd0537a7071868b (patch) | |
tree | ba36fab1a0d292458079c91d20024cd41c34098b /sql/sql_lex.cc | |
parent | 4b8568a797efc6b71884c1726198eaa64ad3e10a (diff) | |
download | mariadb-git-1e1d7b17b43907f48ba72cc18cd0537a7071868b.tar.gz |
join_free now is method of JOIN and commented
dependence should mean uncacheability
sql/item_subselect.cc:
dependence should mean uncacheability
sql/sql_lex.cc:
dependence should mean uncacheability
sql/sql_select.cc:
join_free now is method of JOIN and commented
sql/sql_select.h:
join_free now is method of JOIN
Diffstat (limited to 'sql/sql_lex.cc')
-rw-r--r-- | sql/sql_lex.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc index c3ff69184e6..f842e44ff7d 100644 --- a/sql/sql_lex.cc +++ b/sql/sql_lex.cc @@ -1195,16 +1195,16 @@ void st_select_lex::mark_as_dependent(SELECT_LEX *last) found table as depended (of select where was found table) */ for (SELECT_LEX *s= this; - s &&s != last; + s && s != last; s= s->outer_select()) if ( !s->dependent ) { // Select is dependent of outer select - s->dependent= 1; - s->master_unit()->dependent= 1; + s->dependent= s->uncacheable= 1; + SELECT_LEX_UNIT *munit= s->master_unit(); + munit->dependent= munit->uncacheable= 1; //Tables will be reopened many times - for (TABLE_LIST *tbl= - s->get_table_list(); + for (TABLE_LIST *tbl= s->get_table_list(); tbl; tbl= tbl->next) tbl->shared= 1; |