/** * Executes a prepared statement. * * Returns a boolean value indicating success. * Overridden for query counting and logging. * * @param string $parameters * @return boolean */ public function execute($parameters = null) { $return = $this->statement->execute($parameters); if ($this->connection->useDebug) { $sql = $this->getExecutedQueryString(); $this->connection->log($sql); $this->connection->setLastExecutedQuery($sql); $this->connection->incrementQueryCount(); } return $return; }