Don't use LIMIT 1 if inline updating unique row

This commit is contained in:
Jakub Vrana 2013-05-24 13:38:54 -07:00
parent 005c963e2d
commit 55c494b767
2 changed files with 2 additions and 1 deletions

View file

@ -149,7 +149,7 @@ if ($_POST && !$error) {
}
$query = table($TABLE) . " SET " . implode(", ", $set);
$where2 = " WHERE " . where_check($unique_idf, $fields) . ($where ? " AND " . implode(" AND ", $where) : "");
$result = queries("UPDATE" . ($is_group ? " $query$where2" : limit1($query, $where2))); // can change row on a different page without unique key
$result = queries("UPDATE" . ($is_group || $unselected === array() ? " $query$where2" : limit1($query, $where2))); // can change row on a different page without unique key
if (!$result) {
break;
}

View file

@ -1,6 +1,7 @@
Adminer 3.7.1-dev:
Increase click target for checkboxes
Use shadow for highlighting default button
Don't use LIMIT 1 if inline updating unique row
PostgreSQL: Order table list by name
PostgreSQL: Fix detecting oid column in PDO