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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user