removed null handling code in db::query until further confirmation of bug is received.

This commit is contained in:
Taylor Otwell 2011-07-16 08:19:36 -05:00
parent 40b836511f
commit 70cba4ebe2
1 changed files with 1 additions and 8 deletions

View File

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