mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-18553: MDEV-16327 pre-requisits part 2: uniform of LIMIT/OFFSET handling
Now both offset and limit are stored and do not chenged during execution (offset is decreased during processing in versions before 10.5). (Big part of this changes made by Monty)
This commit is contained in:
@ -111,8 +111,6 @@ int select_unit::send_data(List<Item> &values)
|
||||
{
|
||||
int rc= 0;
|
||||
int not_reported_error= 0;
|
||||
if (unit->lim.check_and_move_offset())
|
||||
return 0; // using limit offset,count
|
||||
if (thd->killed == ABORT_QUERY)
|
||||
return 0;
|
||||
if (table->no_rows_with_nulls)
|
||||
@ -604,8 +602,6 @@ int select_unit_ext::send_data(List<Item> &values)
|
||||
int rc= 0;
|
||||
int not_reported_error= 0;
|
||||
int find_res;
|
||||
if (unit->lim.check_and_move_offset())
|
||||
return 0;
|
||||
if (thd->killed == ABORT_QUERY)
|
||||
return 0;
|
||||
if (table->no_rows_with_nulls)
|
||||
@ -2200,7 +2196,6 @@ bool st_select_lex_unit::exec()
|
||||
}
|
||||
if (!sl->tvc)
|
||||
saved_error= sl->join->error;
|
||||
lim.reset();
|
||||
if (likely(!saved_error))
|
||||
{
|
||||
examined_rows+= thd->get_examined_row_count();
|
||||
|
Reference in New Issue
Block a user