summaryrefslogtreecommitdiff
path: root/sql/sql_union.cc
diff options
context:
space:
mode:
authorgluh@mysql.com/eagle.(none) <>2007-02-26 16:57:45 +0400
committergluh@mysql.com/eagle.(none) <>2007-02-26 16:57:45 +0400
commite8635ad3cb1e934a5214913f52e48e87df980122 (patch)
treece94fd69807e8bbcf533f566abc9f22a2a3a72cf /sql/sql_union.cc
parent01ea1aa44d4d1ab0abb288f8b6b4627c19a052c9 (diff)
parentd9831e91a19c46aa5e373b682e26ca23bc048c40 (diff)
downloadmariadb-git-e8635ad3cb1e934a5214913f52e48e87df980122.tar.gz
Merge mysql.com:/home/gluh/MySQL/Merge/5.0
into mysql.com:/home/gluh/MySQL/Merge/5.0-opt
Diffstat (limited to 'sql/sql_union.cc')
-rw-r--r--sql/sql_union.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_union.cc b/sql/sql_union.cc
index c94a7e17e59..16df0059217 100644
--- a/sql/sql_union.cc
+++ b/sql/sql_union.cc
@@ -147,6 +147,8 @@ st_select_lex_unit::init_prepare_fake_select_lex(THD *thd_arg)
fake_select_lex->table_list.link_in_list((byte *)&result_table_list,
(byte **)
&result_table_list.next_local);
+ fake_select_lex->context.table_list= fake_select_lex->context.first_name_resolution_table=
+ fake_select_lex->get_table_list();
for (ORDER *order= (ORDER *)global_parameters->order_list.first;
order;
order=order->next)