1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Fixed bug in UPDATE .. ORDER BY

This commit is contained in:
monty@hundin.mysql.fi
2001-11-08 22:30:27 +02:00
parent 578ab3f1b1
commit 7a45e7f266
5 changed files with 28 additions and 5 deletions

View File

@@ -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