From 70cba4ebe25e34ba9be9e1659e3948f45e0e7471 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sat, 16 Jul 2011 08:19:36 -0500 Subject: [PATCH] removed null handling code in db::query until further confirmation of bug is received. --- system/db.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/system/db.php b/system/db.php index c4460513..bb5ea7fe 100644 --- a/system/db.php +++ b/system/db.php @@ -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();