From: Jakub Vrana Date: Mon, 24 Mar 2025 09:24:47 +0000 (+0100) Subject: PostgreSQL: Fix number of affected rows after clone X-Git-Tag: v5.1.0~16 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=b34983075835d6dcc0f8b8cce295a2552ae66899;p=adminer.git PostgreSQL: Fix number of affected rows after clone --- 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