mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-18553: MDEV-16327 pre-requisits part 1: isolation of LIMIT/OFFSET handling
This commit is contained in:
@@ -5714,11 +5714,8 @@ int select_value_catcher::send_data(List<Item> &items)
|
||||
DBUG_ASSERT(!assigned);
|
||||
DBUG_ASSERT(items.elements == n_elements);
|
||||
|
||||
if (unit->offset_limit_cnt)
|
||||
{ // Using limit offset,count
|
||||
unit->offset_limit_cnt--;
|
||||
DBUG_RETURN(0);
|
||||
}
|
||||
if (unit->lim.check_and_move_offset())
|
||||
DBUG_RETURN(0); // Using limit offset,count
|
||||
|
||||
Item *val_item;
|
||||
List_iterator_fast<Item> li(items);
|
||||
@@ -6574,7 +6571,7 @@ bool JOIN::choose_subquery_plan(table_map join_tables)
|
||||
Set the limit of this JOIN object as well, because normally its being
|
||||
set in the beginning of JOIN::optimize, which was already done.
|
||||
*/
|
||||
select_limit= in_subs->unit->select_limit_cnt;
|
||||
select_limit= in_subs->unit->lim.get_select_limit();
|
||||
}
|
||||
else if (in_subs->test_strategy(SUBS_IN_TO_EXISTS))
|
||||
{
|
||||
|
Reference in New Issue
Block a user