Beispiel #1
0
 /**
  * Get Last debug info
  *
  * @return null|string
  */
 public function getDebug()
 {
     if ($this->statement === null) {
         return null;
     }
     ob_start();
     $this->statement->debugDumpParams();
     $r = ob_get_contents();
     ob_end_clean();
     return $r;
 }
Beispiel #2
0
 /**
  * @return mixed
  */
 public function debugDumpParams()
 {
     if (!is_null($this->_helperTable)) {
         $this->_buildHelperQuery();
         $this->_resetHelperQueryVars();
     }
     return $this->_stmt->debugDumpParams();
 }
Beispiel #3
0
 /**
  * @throws \Compeek\PDOWrapper\NotConnectedException
  */
 public function debugDumpParams()
 {
     $this->requireConnection();
     return $this->pdoStatement->debugDumpParams();
 }
 /**
  * {@inheritdoc}
  */
 public function debugDumpParams()
 {
     return $this->statement->debugDumpParams();
 }
Beispiel #5
0
 protected function debugQuery(PDOStatement $stmt)
 {
     if ($this->_allowDebug) {
         $stmt->debugDumpParams();
     }
 }
Beispiel #6
0
 public function execPrepared(\PDOStatement $sth)
 {
     $this->initTimer();
     try {
         $ret = $sth->execute();
     } catch (\PDOException $e) {
         $arr = $sth->errorInfo();
         $err = 'Error executing sth: ' . $e->getMessage() . ' PDOException errorInfo: ' . print_r($e->errorInfo, true) . ' sth errorInfo: ' . print_r($arr, 1);
         e($err);
         throw new DevException($err);
     }
     $endTs = microtime(true);
     $sql = 'Executed prepared statement ';
     if (true === LAMPCMS_DEBUG) {
         ob_start();
         $sth->debugDumpParams();
         $sql .= "\r\n" . ob_get_clean();
     }
     /**
      * New on Dec 31, 09
      */
     $sth = null;
     unset($sth);
     $this->logQuery($sql, $endTs);
     return $ret;
 }
 /**
  *
  */
 public function debugDumpParams()
 {
     $archLog = array('method' => 'PDOStatement::debugDumpParams', 'input' => array(), 'output' => '', 'pointer' => $this->assignPointerString());
     ArchLog::set($archLog);
     $this->PDOStatement->debugDumpParams();
 }