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

mysql-test/r/update.result:
  new test
mysql-test/t/update.test:
  Test of UPDATE ... LIMIT
sql/sql_update.cc:
  Fixed 'Unknown error' when using 'UPDATE ... LIMIT'
This commit is contained in:
unknown
2003-05-13 20:07:43 +03:00
parent d05cd28c10
commit d4ae4f0ec0
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)