Skip to content

Commit af809c5

Browse files
committed
Fix #210 empty getLastQuery after rawQuery() execution
1 parent 76f43dd commit af809c5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

MysqliDb.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ public function rawQuery ($query, $bindParams = null, $sanitize = true)
237237

238238
$stmt->execute();
239239
$this->_stmtError = $stmt->error;
240+
$this->_lastQuery = $this->replacePlaceHolders ($this->_query, $bindParams);
240241
$this->reset();
241242

242243
return $this->_dynamicBindResults($stmt);

0 commit comments

Comments
 (0)