mirror of
https://github.com/vrana/adminer.git
synced 2025-08-09 16:17:48 +02:00
Fix number of affected rows after getting warnings
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user