dba_pdo: return false on q() DB error like the old driver did
This commit is contained in:
parent
5a71984b38
commit
3b6248cb64
@ -87,7 +87,7 @@ class dba_pdo extends dba_driver {
|
|||||||
db_logger('dba_pdo: ' . printable(print_r($r,true)), LOGGER_NORMAL, LOG_INFO);
|
db_logger('dba_pdo: ' . printable(print_r($r,true)), LOGGER_NORMAL, LOG_INFO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $r;
|
return (($this->error) ? false : $r);
|
||||||
}
|
}
|
||||||
|
|
||||||
function escape($str) {
|
function escape($str) {
|
||||||
|
Reference in New Issue
Block a user