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:
Dayle Rees 2012-07-31 08:42:47 -07:00
commit a0fd22f6f1
1 changed files with 3 additions and 0 deletions

View File

@ -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);
}