mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Fixed bug in UPDATE .. ORDER BY
Docs/manual.texi: Changelog mysql-test/r/update.result: Test found bug in UPDATE .. ORDER BY mysql-test/t/update.test: Test found bug in UPDATE .. ORDER BY
This commit is contained in:
@ -148,7 +148,7 @@ int mysql_update(THD *thd,
|
||||
used_key_is_modified=check_if_key_used(table, used_index, fields);
|
||||
else
|
||||
used_key_is_modified=0;
|
||||
if (used_key_is_modified)
|
||||
if (used_key_is_modified || order)
|
||||
{
|
||||
/*
|
||||
** We can't update table directly; We must first search after all
|
||||
|
Reference in New Issue
Block a user