- changed the PEAR version of db_query() to act similar to the MySQL one.

If there is an SQL error db_query() will not return a result.
4.0.x
Kjartan Mannes 2001-11-13 10:46:36 +00:00
parent ebb14ab94a
commit 0c9b4dc173
1 changed files with 3 additions and 2 deletions

View File

@ -27,8 +27,9 @@ function db_query($query, $debug = 0) {
if (DB::isError($result)) {
watchdog("error", "database: ". $result->getMessage() ."\nquery: ". htmlspecialchars($query));
}
return $result;
else {
return $result;
}
}
function db_fetch_object($result) {