mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 15:47:00 +02:00
Don't use LIMIT 1 if inline updating unique row
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user