summaryrefslogtreecommitdiff
path: root/sql/sql_lex.cc
diff options
context:
space:
mode:
authorbell@sanja.is.com.ua <>2003-06-30 13:14:18 +0300
committerbell@sanja.is.com.ua <>2003-06-30 13:14:18 +0300
commit100a101ab6d7c49e73a3fb0a81bc8155011ab1c7 (patch)
tree6c4420361778bb678450d3ed4ee79f923ab68c06 /sql/sql_lex.cc
parent7c799b17b6e8d29ed095c4371302b315e958ad7e (diff)
parent223f305cddb4e2700e1d9cb01a5f1fb5a269e522 (diff)
downloadmariadb-git-100a101ab6d7c49e73a3fb0a81bc8155011ab1c7.tar.gz
Merge
Diffstat (limited to 'sql/sql_lex.cc')
-rw-r--r--sql/sql_lex.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc
index 1658d5d14c1..797aa808187 100644
--- a/sql/sql_lex.cc
+++ b/sql/sql_lex.cc
@@ -1310,11 +1310,13 @@ bool st_select_lex_unit::create_total_list_n_last_return(THD *thd, st_lex *lex,
return 1;
}
*new_table_list= cursor;
+ cursor->table_list= aux; //to be able mark this table as shared
new_table_list= &cursor->next;
*new_table_list= 0; // end result list
}
else
- aux->shared= 1; // Mark that it's used twice
+ // Mark that it's used twice
+ cursor->table_list->shared= aux->shared= 1;
aux->table_list= cursor;
}
}
@@ -1411,6 +1413,7 @@ ulong st_select_lex::get_table_join_options()
}
st_select_lex::st_select_lex(struct st_lex *lex)
+ :fake_select(0)
{
select_number= ++lex->thd->select_number;
init_query();