Beispiel #1
0
 public function execute($data = null)
 {
     if ($this->statement === false) {
         return false;
     }
     try {
         if ($data) {
             return $this->statement->execute($data);
         }
         return $this->statement->execute($this->dataPool);
     } catch (PDOException $e) {
         ob_start();
         $this->statement->debugDumpParams();
         $this->db->log('[' . $e->getMessage() . '] PDOStatementDump : ' . ob_get_clean());
         return false;
     }
 }