mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
MDEV-13911 Support ORDER BY and LIMIT in multi-table update
This commit is contained in:
@ -1988,7 +1988,8 @@ int JOIN::optimize_stage2()
|
||||
FORCE INDEX FOR ORDER BY can be used to prevent join buffering when
|
||||
sorting on the first table.
|
||||
*/
|
||||
if (!stable || !stable->force_index_order)
|
||||
if (!stable || (!stable->force_index_order &&
|
||||
!map2table[stable->tablenr]->keep_current_rowid))
|
||||
{
|
||||
if (group_list)
|
||||
simple_group= 0;
|
||||
|
Reference in New Issue
Block a user