1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-13 10:04:07 +02:00

Fix affected rows after getting warnings

This commit is contained in:
Jakub Vrana
2018-02-05 09:23:07 +01:00
parent d3cdfc17de
commit 7b0c58af32
3 changed files with 4 additions and 4 deletions

View File

@@ -278,9 +278,7 @@ 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