- 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
Dries Buytaert 2003-06-08 12:10:25 +00:00
parent 49ebc543b7
commit ff914280b9
1 changed files with 1 additions and 1 deletions

View File

@ -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;