diff options
author | unknown <Sinisa@sinisa.nasamreza.org> | 2002-07-16 22:42:53 +0300 |
---|---|---|
committer | unknown <Sinisa@sinisa.nasamreza.org> | 2002-07-16 22:42:53 +0300 |
commit | 63a49b788669b23da48029774e931621aae2dc51 (patch) | |
tree | 8fa6fc981a60b75665f74a13c3d13ecc0068a8f5 /sql/sql_union.cc | |
parent | f0403106ac78118049c02a0e5863f979054bfbd2 (diff) | |
download | mariadb-git-63a49b788669b23da48029774e931621aae2dc51.tar.gz |
Just making commit in order to stop getting erors.
Will do a push when it starts working ..
Diffstat (limited to 'sql/sql_union.cc')
-rw-r--r-- | sql/sql_union.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sql/sql_union.cc b/sql/sql_union.cc index 983ff44dc73..f25a6e57315 100644 --- a/sql/sql_union.cc +++ b/sql/sql_union.cc @@ -49,7 +49,13 @@ 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; + { + if (cursor->do_redirect) + { + cursor->table= ((TABLE_LIST*) cursor->table)->table; + cursor->do_redirect=false; + } + } } /* last_sel now points at the last select where the ORDER BY is stored */ |