1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 23:57:29 +02:00

Fix number of affected rows after getting warnings

This commit is contained in:
Jakub Vrana
2018-02-05 09:09:41 +01:00
parent f097817386
commit d3cdfc17de

View File

@@ -278,7 +278,9 @@ if (!defined("DRIVER")) {
} }
function warnings() { function warnings() {
$affected = $this->_conn->affected_rows;
$result = $this->_conn->query("SHOW WARNINGS"); $result = $this->_conn->query("SHOW WARNINGS");
$this->_conn->affected_rows = $affected;
if ($result && $result->num_rows) { if ($result && $result->num_rows) {
ob_start(); ob_start();
select($result); // select() usually needs to print a big table progressively select($result); // select() usually needs to print a big table progressively