mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
cleanup: Refactor select_limit in select lex
Replace * select_lex::offset_limit * select_lex::select_limit * select_lex::explicit_limit with select_lex::Lex_select_limit The Lex_select_limit already existed with the same elements and was used in by the yacc parser. This commit is in preparation for FETCH FIRST implementation, as it simplifies a lot of the code. Additionally, the parser is simplified by making use of the stack to return Lex_select_limit objects. Cleanup of init_query() too. Removes explicit_limit= 0 as it's done a bit later in init_select() with limit_params.empty()
This commit is contained in:
@ -1448,7 +1448,8 @@ bool pushdown_cond_for_derived(THD *thd, Item *cond, TABLE_LIST *derived)
|
||||
DBUG_RETURN(false);
|
||||
|
||||
/* Do not push conditions into unit with global ORDER BY ... LIMIT */
|
||||
if (unit->fake_select_lex && unit->fake_select_lex->explicit_limit)
|
||||
if (unit->fake_select_lex &&
|
||||
unit->fake_select_lex->limit_params.explicit_limit)
|
||||
DBUG_RETURN(false);
|
||||
|
||||
/* Check whether any select of 'unit' allows condition pushdown */
|
||||
|
Reference in New Issue
Block a user