]> git.joonet.de Git - adminer.git/commitdiff
Fix number of affected rows after getting warnings
authorJakub Vrana <jakub@vrana.cz>
Mon, 5 Feb 2018 08:09:41 +0000 (09:09 +0100)
committerJakub Vrana <jakub@vrana.cz>
Mon, 5 Feb 2018 08:09:41 +0000 (09:09 +0100)
adminer/drivers/mysql.inc.php

index 2f93e099025f6819b66c57fd50e92ca7ef73d7a3..8244e8ad0edccb105152caf400d458897046c065 100644 (file)
@@ -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