Example #1
0
 /**
  * Executes a prepared statement.  Returns a boolean value indicating success.
  * Overridden for query counting and logging.
  *
  * @param string $input_parameters
  *
  * @return boolean
  */
 public function execute($input_parameters = null)
 {
     $debug = $this->pdo->getDebugSnapshot();
     $return = parent::execute($input_parameters);
     $sql = $this->getExecutedQueryString();
     $this->pdo->log($sql, null, __METHOD__, $debug);
     $this->pdo->setLastExecutedQuery($sql);
     $this->pdo->incrementQueryCount();
     return $return;
 }