re-inline error_check, since it only works inline...
git-svn-id: file:///home/shish/svn/shimmie2/trunk@535 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
94b26de5b1
commit
dc9181fc24
@ -74,7 +74,14 @@ class Database {
|
||||
}
|
||||
|
||||
public function execute($query, $args=array()) {
|
||||
return $this->error_check($this->db->Execute($query, $args));
|
||||
$result = $this->db->Execute($query, $args);
|
||||
if($result === False) {
|
||||
print "SQL Error: " . $this->db->ErrorMsg();
|
||||
print "<br>Query: $query";
|
||||
print "<br>Args: "; print_r($args);
|
||||
exit;
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
public function cache_execute($time, $query, $args=array()) {
|
||||
@ -83,7 +90,7 @@ class Database {
|
||||
return $this->error_check($this->db->CacheExecute($time, $query, $args));
|
||||
}
|
||||
else {
|
||||
return $this->error_check($this->db->Execute($query, $args));
|
||||
return $this->execute($query, $args);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user