- 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
parent
ebb14ab94a
commit
0c9b4dc173
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue