コード例 #1
0
ファイル: DebugPDOStatement.php プロジェクト: Evolix/lilac
 /**
  * Executes a prepared statement.  Returns a boolean value indicating success.
  * 
  * Overridden for query counting and logging.
  * 
  * @return     bool
  */
 public function execute($input_parameters = null)
 {
     $debug = $this->pdo->getDebugSnapshot();
     $return = parent::execute($input_parameters);
     $this->pdo->incrementQueryCount();
     $this->pdo->log($this->getExecutedQueryString(), null, __METHOD__, $debug);
     return $return;
 }
コード例 #2
0
 /**
  * Overridden for query counting.
  * @return     int
  */
 public function execute($input_parameters = null)
 {
     $this->pdo->incrementQueryCount();
     return parent::execute($input_parameters);
 }