1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-09 08:06:59 +02:00

PostgreSQL: Fix number of affected rows after clone

This commit is contained in:
Jakub Vrana
2025-03-24 10:24:47 +01:00
parent b8eb0ad8f5
commit b349830758

View File

@@ -129,7 +129,7 @@ if ($_POST && !$error) {
: $driver->update($TABLE, $set, $where_check) : $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 { } else {
foreach ((array) $_POST["check"] as $val) { foreach ((array) $_POST["check"] as $val) {
// where is not unique so OR can't be used // where is not unique so OR can't be used