コード例 #1
0
ファイル: Innodb.php プロジェクト: nano-eight/MysqlUtil
 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
ファイル: MysqlExtended.php プロジェクト: beckye67/Icing
 /**
  * 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);
 }