diff --git a/adminer/drivers/mysql.inc.php b/adminer/drivers/mysql.inc.php index 2f93e099..8244e8ad 100644 --- a/adminer/drivers/mysql.inc.php +++ b/adminer/drivers/mysql.inc.php @@ -278,7 +278,9 @@ if (!defined("DRIVER")) { } function warnings() { + $affected = $this->_conn->affected_rows; $result = $this->_conn->query("SHOW WARNINGS"); + $this->_conn->affected_rows = $affected; if ($result && $result->num_rows) { ob_start(); select($result); // select() usually needs to print a big table progressively