summaryrefslogtreecommitdiff
path: root/sql/sql_union.cc
diff options
context:
space:
mode:
authorunknown <bell@sanja.is.com.ua>2002-05-09 15:23:57 +0300
committerunknown <bell@sanja.is.com.ua>2002-05-09 15:23:57 +0300
commitb69d8dab20811845e41c9f5c770125fd2f3b1a2f (patch)
treef1077e91c5d64a2cfeebc6ff2fafe734c77fb369 /sql/sql_union.cc
parent510a4d1da1578c240a37328e82f2dbaae1a7bfc3 (diff)
downloadmariadb-git-b69d8dab20811845e41c9f5c770125fd2f3b1a2f.tar.gz
total table list managment is changed
sql/sql_lex.cc: tabllist creation routine moved to SELECT_LEX_UNION class & made recursive sql/sql_lex.h: list creation routine moved to SELECT_LEX_UNION class sql/sql_parse.cc: list creation routine moved to SELECT_LEX_UNION class anonymous union used for storing TABLE*/TABLE_LIST* sql/sql_union.cc: anonymous union used for storing TABLE*/TABLE_LIST* sql/table.h: anonymous union used for storing TABLE*/TABLE_LIST*
Diffstat (limited to 'sql/sql_union.cc')
-rw-r--r--sql/sql_union.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_union.cc b/sql/sql_union.cc
index d821c6f6641..ef34af6fe1e 100644
--- a/sql/sql_union.cc
+++ b/sql/sql_union.cc
@@ -48,7 +48,7 @@ int mysql_union(THD *thd, LEX *lex,select_result *result)
for (TABLE_LIST *cursor= (TABLE_LIST *)sl->table_list.first;
cursor;
cursor=cursor->next)
- cursor->table= ((TABLE_LIST*) cursor->table)->table;
+ cursor->table= cursor->table_list->table;
}
/* Global option */