Commit f2e915f1 by Loic Sharma

Improved the way the quotes were added to the bindings.

parent ea3021f3
......@@ -5,6 +5,7 @@ use Laravel\File;
use Laravel\Event;
use Laravel\Config;
use Laravel\Request;
use Laravel\Database;
class Profiler {
......@@ -54,7 +55,7 @@ class Profiler {
{
foreach ($bindings as $binding)
{
$binding = "'{$binding}'";
$binding = Database::connection()->pdo->quote($binding);
$sql = preg_replace('/\?/', $binding, $sql, 1);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment