- Synced/unified the error reporting from database.mysql.inc and database.pear.inc.
This makes debugging the PostgreSQL (and MSSQL) support somewhat easier.4.2.x
parent
49ebc543b7
commit
ff914280b9
|
@ -71,7 +71,7 @@ function _db_query($query, $debug = 0) {
|
|||
}
|
||||
|
||||
if (DB::isError($result)) {
|
||||
watchdog("error", "database: ". $result->getMessage() ."\nquery: ". htmlspecialchars($query));
|
||||
trigger_error($result->getMessage() ."\nquery: ". htmlspecialchars($query), E_USER_ERROR);
|
||||
}
|
||||
else {
|
||||
return $result;
|
||||
|
|
Loading…
Reference in New Issue