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 ad5354d commit 2a3086eCopy full SHA for 2a3086e
src/Builder/RunnableSelect.php
@@ -166,7 +166,7 @@ public function getFoundRows() {
166
private function createStatement() {
167
$db = $this->db();
168
$query = $this->__toString();
169
- $statement = $db->query($query);
+ $statement = $db->prepare($query);
170
$statement->execute($this->values);
171
if($this->getCalcFoundRows()) {
172
$this->foundRows = $db->query('SELECT FOUND_ROWS()')->fetchColumn();
0 commit comments