I too like to live dangerously.
This commit is contained in:
parent
7f6672a2d3
commit
741eb0f739
@ -375,7 +375,7 @@ class Database {
|
|||||||
* Execute an SQL query and return an PDO resultset
|
* Execute an SQL query and return an PDO resultset
|
||||||
*/
|
*/
|
||||||
public function execute($query, $args=array()) {
|
public function execute($query, $args=array()) {
|
||||||
try {
|
//try {
|
||||||
if(is_null($this->db)) $this->connect_db();
|
if(is_null($this->db)) $this->connect_db();
|
||||||
_count_execs($this->db, $query, $args);
|
_count_execs($this->db, $query, $args);
|
||||||
$stmt = $this->db->prepare($query);
|
$stmt = $this->db->prepare($query);
|
||||||
@ -394,10 +394,10 @@ class Database {
|
|||||||
$stmt->execute($args);
|
$stmt->execute($args);
|
||||||
}
|
}
|
||||||
return $stmt;
|
return $stmt;
|
||||||
}
|
/*}
|
||||||
catch(PDOException $pdoe) {
|
catch(PDOException $pdoe) {
|
||||||
throw new SCoreException($pdoe->getMessage()."<p><b>Query:</b> ".$query);
|
throw new SCoreException($pdoe->getMessage()."<p><b>Query:</b> ".$query);
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user