Merge pull request #772 from loic-sharma/patch-3
Fixed bug where the profiler did not correctly put quotes around bindings
This commit is contained in:
commit
a0fd22f6f1
|
@ -5,6 +5,7 @@
|
|||
use Laravel\Event;
|
||||
use Laravel\Config;
|
||||
use Laravel\Request;
|
||||
use Laravel\Database;
|
||||
|
||||
class Profiler {
|
||||
|
||||
|
@ -57,6 +58,8 @@ public static function query($sql, $bindings, $time)
|
|||
{
|
||||
foreach ($bindings as $binding)
|
||||
{
|
||||
$binding = Database::connection()->pdo->quote($binding);
|
||||
|
||||
$sql = preg_replace('/\?/', $binding, $sql, 1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue