This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
both queries below are in the context of a transaction done | |
$dataSourceProduct->begin($this->Product); | |
which sends a start transaction to the database in the mysql logs | |
START TRANSACTION | |
---first query | |
can see query in mysql logs being sent to server |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* @param string $sql SQL statement | |
* @param array $params Additional options for the query. | |
* @return mixed Resource or object representing the result set, or false on failure | |
*/ | |
public function rawQuery($sql, $params = array()) { | |
$this->took = $this->numRows = false; | |
return $this->execute($sql, $params); | |
} |