We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52befee commit db6bbacCopy full SHA for db6bbac
src/Builder/RunnableSelect.php
@@ -163,7 +163,7 @@ public function getFoundRows() {
163
*/
164
private function createStatement() {
165
$db = $this->db();
166
- $statement = $db->query($this->__toString());
+ $statement = $db->prepare($this->__toString());
167
$statement->execute($this->values);
168
if($this->getCalcFoundRows()) {
169
$this->foundRows = $db->query('SELECT FOUND_ROWS()')->fetchColumn();
tests/Databases/Mock.php
@@ -35,9 +35,10 @@ public function prepare($query) {
35
36
/**
37
* @param string $query
38
+ * @param array $params
39
* @return int
40
- public function exec($query) {
41
+ public function exec($query, array $params = array()) {
42
return 1;
43
}
44
0 commit comments