diff options
author | igor@rurik.mysql.com <> | 2006-04-21 00:36:20 -0700 |
---|---|---|
committer | igor@rurik.mysql.com <> | 2006-04-21 00:36:20 -0700 |
commit | 37ac7822065195d0bf7061d947306f2481c7191c (patch) | |
tree | 12430c67bf33ee7014ca554819c453fb616380b5 /sql/sql_union.cc | |
parent | 4cbad914ca5a4978e21e424f0c68cbb3185e0073 (diff) | |
parent | fd3e9241647e70139a44baca9be5e336bc22e6da (diff) | |
download | mariadb-git-37ac7822065195d0bf7061d947306f2481c7191c.tar.gz |
Merge rurik.mysql.com:/home/igor/dev/mysql-4.1-0
into rurik.mysql.com:/home/igor/dev/mysql-5.0-0
Diffstat (limited to 'sql/sql_union.cc')
-rw-r--r-- | sql/sql_union.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_union.cc b/sql/sql_union.cc index dee88af7d83..68036f76e96 100644 --- a/sql/sql_union.cc +++ b/sql/sql_union.cc @@ -202,7 +202,7 @@ bool st_select_lex_unit::prepare(THD *thd_arg, select_result *sel_result, thd_arg->lex->current_select= sl= first_sl; found_rows_for_union= first_sl->options & OPTION_FOUND_ROWS; - is_union= test(first_sl->next_select()); + is_union= test(first_select->next_select() || fake_select_lex); /* Global option */ |