summaryrefslogtreecommitdiff
path: root/sql/sql_derived.cc
diff options
context:
space:
mode:
authorunknown <bell@sanja.is.com.ua>2003-11-27 09:34:41 +0200
committerunknown <bell@sanja.is.com.ua>2003-11-27 09:34:41 +0200
commit443a157c6aa6bff7ed7b8dedc9c9c83be0eb8b58 (patch)
tree83971054dc72c2f972eaefe3d1a9cfd981dd3dfb /sql/sql_derived.cc
parenta43114ac70617cfbb88e4fac003fd5d7e72f76be (diff)
downloadmariadb-git-443a157c6aa6bff7ed7b8dedc9c9c83be0eb8b58.tar.gz
removed unused variable
Diffstat (limited to 'sql/sql_derived.cc')
-rw-r--r--sql/sql_derived.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/sql_derived.cc b/sql/sql_derived.cc
index 2de56d715ea..efc15ffcb18 100644
--- a/sql/sql_derived.cc
+++ b/sql/sql_derived.cc
@@ -67,7 +67,6 @@ int mysql_derived(THD *thd, LEX *lex, SELECT_LEX_UNIT *unit,
int res;
select_union *derived_result;
TABLE_LIST *tables= (TABLE_LIST *)first_select->table_list.first;
- TMP_TABLE_PARAM tmp_table_param;
bool is_union= first_select->next_select() &&
first_select->next_select()->linkage == UNION_TYPE;
bool is_subsel= first_select->first_inner_unit() ? 1: 0;
@@ -128,7 +127,7 @@ int mysql_derived(THD *thd, LEX *lex, SELECT_LEX_UNIT *unit,
cursor->table->clear_query_id= 1;
}
- bzero((char*) &derived_result->tmp_table_param, sizeof(tmp_table_param));
+ bzero((char*) &derived_result->tmp_table_param, sizeof(TMP_TABLE_PARAM));
derived_result->tmp_table_param.field_count= unit->types.elements;
/*
Temp table is created so that it hounours if UNION without ALL is to be