Don't use LIMIT 1 if inline updating unique row
This commit is contained in:
parent
005c963e2d
commit
55c494b767
|
@ -149,7 +149,7 @@ if ($_POST && !$error) {
|
||||||
}
|
}
|
||||||
$query = table($TABLE) . " SET " . implode(", ", $set);
|
$query = table($TABLE) . " SET " . implode(", ", $set);
|
||||||
$where2 = " WHERE " . where_check($unique_idf, $fields) . ($where ? " AND " . implode(" AND ", $where) : "");
|
$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) {
|
if (!$result) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
Adminer 3.7.1-dev:
|
Adminer 3.7.1-dev:
|
||||||
Increase click target for checkboxes
|
Increase click target for checkboxes
|
||||||
Use shadow for highlighting default button
|
Use shadow for highlighting default button
|
||||||
|
Don't use LIMIT 1 if inline updating unique row
|
||||||
PostgreSQL: Order table list by name
|
PostgreSQL: Order table list by name
|
||||||
PostgreSQL: Fix detecting oid column in PDO
|
PostgreSQL: Fix detecting oid column in PDO
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue