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

Fix PDO error handling

This commit is contained in:
Jakub Vrana
2013-01-10 12:57:00 -08:00
parent 35b6491a3c
commit 61dc40a512
2 changed files with 7 additions and 1 deletions

View File

@@ -111,7 +111,7 @@ if (!defined("DRIVER")) {
$result = @($unbuffered ? mysql_unbuffered_query($query, $this->_link) : mysql_query($query, $this->_link)); // @ - mute mysql.trace_mode
$this->error = "";
if (!$result) {
$this->errrno = mysql_errno($this->_link);
$this->errno = mysql_errno($this->_link);
$this->error = mysql_error($this->_link);
return false;
}