_count_execs actually works nicely for PDO, if called...
This commit is contained in:
parent
444fdb1f04
commit
8623ab2917
2 changed files with 1 additions and 1 deletions
|
@ -326,6 +326,7 @@ class Database {
|
|||
*/
|
||||
public function execute($query, $args=array()) {
|
||||
try {
|
||||
_count_execs($this->db, $query, $args);
|
||||
$stmt = $this->db->prepare($query);
|
||||
if (!array_key_exists(0, $args)) {
|
||||
foreach($args as $name=>$value) {
|
||||
|
|
|
@ -106,7 +106,6 @@ try {
|
|||
ctx_log_start("Connecting to DB");
|
||||
// connect to the database
|
||||
$database = new Database();
|
||||
//$database->db->fnExecute = '_count_execs'; // FIXME: PDO equivalent
|
||||
$database->db->beginTransaction();
|
||||
$config = new DatabaseConfig($database);
|
||||
ctx_log_endok();
|
||||
|
|
Reference in a new issue