Skip to content

Commit

Permalink
[fix] Emulate quote bindings for drivers that don't support quoting (#…
Browse files Browse the repository at this point in the history
…1219)

Co-authored-by: Barry vd. Heuvel <barryvdh@gmail.com>
  • Loading branch information
danielsdeboer and barryvdh authored Dec 14, 2021
1 parent 33bf3c1 commit ccf109f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/DataCollector/QueryCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ public function addQuery($query, $bindings, $time, $connection)
try {
$binding = $pdo->quote($binding);
} catch (\Exception $e) {
$binding = $this->emulateQuote($binding);
}
} else {
$binding = $this->emulateQuote($binding);
Expand Down

0 comments on commit ccf109f

Please sign in to comment.