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

Return string from warnings()

This commit is contained in:
Jakub Vrana
2018-02-01 11:43:44 +01:00
parent e3346fb0bc
commit e9add6d985
4 changed files with 17 additions and 21 deletions

View File

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