From b34983075835d6dcc0f8b8cce295a2552ae66899 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Mon, 24 Mar 2025 10:24:47 +0100 Subject: [PATCH] PostgreSQL: Fix number of affected rows after clone --- adminer/select.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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