1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00
The bug caused wrong result sets for union constructs of the form
(SELECT ... ORDER BY order_list1 [LIMIT n]) ORDER BY order_list2.
For such queries order lists were concatenated and limit clause was
completely neglected.
This commit is contained in:
igor@rurik.mysql.com
2006-04-20 22:15:38 -07:00
parent bc1f457194
commit fc7514151f
7 changed files with 127 additions and 22 deletions

View File

@ -184,7 +184,7 @@ int st_select_lex_unit::prepare(THD *thd_arg, select_result *sel_result,
thd_arg->lex->current_select= sl= first_select= first_select_in_union();
found_rows_for_union= first_select->options & OPTION_FOUND_ROWS;
is_union= test(first_select->next_select());
is_union= test(first_select->next_select() || fake_select_lex);
/* Global option */