diff --git a/adminer/select.inc.php b/adminer/select.inc.php index 9092d520..8ae4ca58 100644 --- a/adminer/select.inc.php +++ b/adminer/select.inc.php @@ -129,7 +129,7 @@ if ($_POST && !$error) { : $driver->update($TABLE, $set, $where_check) ) ); - $affected = $connection->affected_rows; + $affected = $connection->affected_rows + (is_object($result) ? $result->num_rows : 0); // PostgreSQL with RETURNING fills num_rows } else { foreach ((array) $_POST["check"] as $val) { // where is not unique so OR can't be used