Пример #1
0
 function execute($sql, $options = array(), $params = array())
 {
     if ($this->_noCache && stripos($sql, 'SELECT') === 0) {
         $sql = substr_replace($sql, ' SQL_NO_CACHE', 6, 0);
     }
     return parent::execute($sql, $options, $params);
 }
Пример #2
0
 /**
  * Split out to parent caller function - for easier testing/mocking
  *
  * @param string $sql SQL statement
  * @param array $options The options for executing the query.
  * @param array $params values to be bound to the query.
  * @return mixed Resource or object representing the result set, or false on failure
  */
 public function executeOnParent($sql, $options = array(), $params = array())
 {
     return parent::execute($sql, $options, $params);
 }