1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

Fixed 'Unknown error' when using 'UPDATE ... LIMIT'. Bug 373

This commit is contained in:
monty@narttu.mysql.fi
2003-05-13 20:07:43 +03:00
parent 2693203a08
commit 41d2103e26
3 changed files with 33 additions and 0 deletions

View File

@@ -231,9 +231,13 @@ int mysql_update(THD *thd,
break; /* purecov: inspected */
}
if (!--limit && using_limit)
{
error= -1;
break;
}
}
}
limit= tmp_limit;
end_read_record(&info);
/* Change select to use tempfile */
if (select)