removed null handling code in db::query until further confirmation of bug is received.
This commit is contained in:
parent
40b836511f
commit
70cba4ebe2
|
@ -56,14 +56,7 @@ public static function query($sql, $bindings = array(), $connection = null)
|
|||
|
||||
foreach ($bindings as $key => &$binding)
|
||||
{
|
||||
if (is_null($binding))
|
||||
{
|
||||
$query->bindValue($key + 1, null, \PDO::PARAM_INT);
|
||||
}
|
||||
else
|
||||
{
|
||||
$query->bindParam($key + 1, $binding);
|
||||
}
|
||||
$query->bindParam($key + 1, $binding);
|
||||
}
|
||||
|
||||
$result = $query->execute();
|
||||
|
|
Loading…
Reference in New Issue