summaryrefslogtreecommitdiff
path: root/sql/sql_olap.cc
diff options
context:
space:
mode:
authorbell@sanja.is.com.ua <>2004-02-01 15:30:32 +0200
committerbell@sanja.is.com.ua <>2004-02-01 15:30:32 +0200
commit2a9cd37cd69e70dfbfe868b635bc21c8996d8fb7 (patch)
tree6695a3de384136658355d41c6bd8beba4f4f92ac /sql/sql_olap.cc
parent95fcfaf63c47fb7c1410877b827a5a666af46b0a (diff)
downloadmariadb-git-2a9cd37cd69e70dfbfe868b635bc21c8996d8fb7.tar.gz
now all tables of query are locked in one place (including derived tables)
fixed BUG#2120 and other problem with EXPLAINing derived tables
Diffstat (limited to 'sql/sql_olap.cc')
-rw-r--r--sql/sql_olap.cc12
1 files changed, 0 insertions, 12 deletions
diff --git a/sql/sql_olap.cc b/sql/sql_olap.cc
index 1d16771c1a4..efc4cf0921d 100644
--- a/sql/sql_olap.cc
+++ b/sql/sql_olap.cc
@@ -143,18 +143,6 @@ int handle_olaps(LEX *lex, SELECT_LEX *select_lex)
int count=select_lex->group_list.elements;
int sl_return=0;
-// a fix for UNION's
- for (TABLE_LIST *cursor= (TABLE_LIST *)select_lex->table_list.first;
- cursor;
- cursor=cursor->next)
- {
- if (cursor->do_redirect)
- {
- //Sinisa TODO: there are function for this purpose: fix_tables_pointers
- cursor->table= cursor->table_list->table;
- cursor->do_redirect= 0;
- }
- }
lex->last_selects=select_lex;