summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorlenz@mysql.com <>2003-02-19 14:58:44 +0100
committerlenz@mysql.com <>2003-02-19 14:58:44 +0100
commit7a6d8edfd7ebe6ac82a531009fdb5086a0237790 (patch)
tree89fd91a2f02bd43a041b8087ebd24cb77befeae1 /sql
parent64b204891420fdb754cd77ca7c5a57fcc337d63a (diff)
downloadmariadb-git-7a6d8edfd7ebe6ac82a531009fdb5086a0237790.tar.gz
Applying Sinisa's patch:
"Cleaning the code of the remaining OLAP code. This code is unnecessary in 4.1/5.0"
Diffstat (limited to 'sql')
-rw-r--r--sql/sql_parse.cc1
-rw-r--r--sql/sql_union.cc6
-rw-r--r--sql/table.h1
3 files changed, 1 insertions, 7 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc
index 6249c769015..66f11f3da9f 100644
--- a/sql/sql_parse.cc
+++ b/sql/sql_parse.cc
@@ -3338,7 +3338,6 @@ static bool create_total_list(THD *thd, LEX *lex, TABLE_LIST **result)
for (; aux; aux=next)
{
TABLE_LIST *cursor;
- aux->do_redirect=true;
next= aux->next;
for (cursor= *result; cursor; cursor=cursor->next)
if (!strcmp(cursor->db,aux->db) &&
diff --git a/sql/sql_union.cc b/sql/sql_union.cc
index 4e36ccafefc..faa106d4f42 100644
--- a/sql/sql_union.cc
+++ b/sql/sql_union.cc
@@ -50,11 +50,7 @@ int mysql_union(THD *thd, LEX *lex,select_result *result)
cursor;
cursor=cursor->next)
{
- if (cursor->do_redirect) // False if CUBE/ROLLUP
- {
- cursor->table= (my_reinterpret_cast(TABLE_LIST*) (cursor->table))->table;
- cursor->do_redirect= 0;
- }
+ cursor->table= (my_reinterpret_cast(TABLE_LIST*) (cursor->table))->table;
}
}
diff --git a/sql/table.h b/sql/table.h
index c3f469115b5..b6935ea6a32 100644
--- a/sql/table.h
+++ b/sql/table.h
@@ -157,7 +157,6 @@ typedef struct st_table_list
uint32 db_length, real_name_length;
bool straight; /* optimize with prev table */
bool updating; /* for replicate-do/ignore table */
- bool do_redirect; /* To get the struct in UNION's */
bool force_index; /* Prefer index over table scan */
} TABLE_LIST;