removed unnecessary binding code.
This commit is contained in:
parent
0ebf677ae1
commit
da1715fb76
|
@ -52,14 +52,7 @@ public static function query($sql, $bindings = array(), $connection = null)
|
|||
{
|
||||
$query = static::connection($connection)->prepare($sql);
|
||||
|
||||
$bindings = array_values($bindings);
|
||||
|
||||
foreach ($bindings as $key => &$binding)
|
||||
{
|
||||
$query->bindParam($key + 1, $binding);
|
||||
}
|
||||
|
||||
$result = $query->execute();
|
||||
$result = $query->execute($bindings);
|
||||
|
||||
if (strpos(strtoupper($sql), 'SELECT') === 0)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue