summaryrefslogtreecommitdiff
path: root/sql/sql_union.cc
diff options
context:
space:
mode:
authorDavi Arnaut <davi.arnaut@oracle.com>2010-10-20 17:02:59 -0200
committerDavi Arnaut <davi.arnaut@oracle.com>2010-10-20 17:02:59 -0200
commit1e1985eba70a9f18a7ea129a869bcd7e219419c4 (patch)
tree8b9671ed7e4c19f1f97d8f8347422f15f2432a03 /sql/sql_union.cc
parentffeb96ecc390432049bd85f2c6a1e6c94871e857 (diff)
parent560ee2158d17212ecb2ec282ee15b1e1eb5f2092 (diff)
downloadmariadb-git-1e1985eba70a9f18a7ea129a869bcd7e219419c4.tar.gz
Merge of mysql-5.1-bugteam into mysql-5.5-bugteam.
Diffstat (limited to 'sql/sql_union.cc')
-rw-r--r--sql/sql_union.cc9
1 files changed, 0 insertions, 9 deletions
diff --git a/sql/sql_union.cc b/sql/sql_union.cc
index acc0f704c44..98f20e09949 100644
--- a/sql/sql_union.cc
+++ b/sql/sql_union.cc
@@ -176,7 +176,6 @@ bool st_select_lex_unit::prepare(THD *thd_arg, select_result *sel_result,
SELECT_LEX *sl, *first_sl= first_select();
select_result *tmp_result;
bool is_union_select;
- TABLE *empty_table= 0;
DBUG_ENTER("st_select_lex_unit::prepare");
describe= test(additional_options & SELECT_DESCRIBE);
@@ -278,14 +277,6 @@ bool st_select_lex_unit::prepare(THD *thd_arg, select_result *sel_result,
types= first_sl->item_list;
else if (sl == first_sl)
{
- /*
- We need to create an empty table object. It is used
- to create tmp_table fields in Item_type_holder.
- The main reason of this is that we can't create
- field object without table.
- */
- DBUG_ASSERT(!empty_table);
- empty_table= (TABLE*) thd->calloc(sizeof(TABLE));
types.empty();
List_iterator_fast<Item> it(sl->item_list);
Item *item_tmp;