mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
fixed proccesing global LIMIT in last SELECT of UNION
This commit is contained in:
@@ -1723,6 +1723,10 @@ mysql_execute_command(THD *thd)
|
||||
break; // Error message is given
|
||||
}
|
||||
|
||||
/*
|
||||
In case of single SELECT unit->global_parameters points on first SELECT
|
||||
TODO: move counters to SELECT_LEX
|
||||
*/
|
||||
unit->offset_limit_cnt= (ha_rows) unit->global_parameters->offset_limit;
|
||||
unit->select_limit_cnt= (ha_rows) (unit->global_parameters->select_limit+
|
||||
unit->global_parameters->offset_limit);
|
||||
|
||||
Reference in New Issue
Block a user