summaryrefslogtreecommitdiff
path: root/sql/sql_lex.cc
diff options
context:
space:
mode:
authorunknown <bell@sanja.is.com.ua>2003-11-18 17:48:06 +0200
committerunknown <bell@sanja.is.com.ua>2003-11-18 17:48:06 +0200
commit848088d66518a56e615dd08aa86acfc7d4eaa81f (patch)
tree4faf368ec90a58dd5ea8c1e1ce0d28799a6a4189 /sql/sql_lex.cc
parentcde9c4299b1f77abed719dbacb278030010760e6 (diff)
parent79533975b1453a716dce3a4b3936740ee22d92d9 (diff)
downloadmariadb-git-848088d66518a56e615dd08aa86acfc7d4eaa81f.tar.gz
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1
into sanja.is.com.ua:/home/bell/mysql/bk/work-used_tables-4.1 sql/item_func.cc: Auto merged sql/mysql_priv.h: Auto merged sql/sql_lex.cc: Auto merged sql/sql_lex.h: Auto merged sql/sql_yacc.yy: Auto merged
Diffstat (limited to 'sql/sql_lex.cc')
-rw-r--r--sql/sql_lex.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc
index 50676ba6dd2..bc87f6aaabc 100644
--- a/sql/sql_lex.cc
+++ b/sql/sql_lex.cc
@@ -965,7 +965,8 @@ void st_select_lex_node::init_query()
{
options= 0;
linkage= UNSPECIFIED_TYPE;
- no_error= no_table_names_allowed= uncacheable= dependent= 0;
+ no_error= no_table_names_allowed= 0;
+ uncacheable= 0;
}
void st_select_lex_node::init_select()
@@ -1215,12 +1216,12 @@ void st_select_lex::mark_as_dependent(SELECT_LEX *last)
for (SELECT_LEX *s= this;
s && s != last;
s= s->outer_select())
- if ( !s->dependent )
+ if (!(s->uncacheable & UNCACHEABLE_DEPENDENT))
{
// Select is dependent of outer select
- s->dependent= s->uncacheable= 1;
+ s->uncacheable|= UNCACHEABLE_DEPENDENT;
SELECT_LEX_UNIT *munit= s->master_unit();
- munit->dependent= munit->uncacheable= 1;
+ munit->uncacheable|= UNCACHEABLE_DEPENDENT;
//Tables will be reopened many times
for (TABLE_LIST *tbl= s->get_table_list();
tbl;