From 91e8e2c936a16ed3e2e3ff3c27f9d4d7eaedaa2f Mon Sep 17 00:00:00 2001 From: Mitch Date: Mon, 23 Jun 2014 21:57:47 +1000 Subject: Remove code replaces by prev commit --- idiorm.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/idiorm.php b/idiorm.php index ed91c28..6ef5911 100644 --- a/idiorm.php +++ b/idiorm.php @@ -434,15 +434,6 @@ $statement->bindParam(is_int($key) ? ++$key : $key, $param, $type); } - $count = count($parameters); - for ($i = 0; $i < $count; $i++) { - $type = PDO::PARAM_STR; - if (is_null($parameters[$i])) $type = PDO::PARAM_NULL; - if (is_bool($parameters[$i])) $type = PDO::PARAM_BOOL; - if (is_int($parameters[$i])) $type = PDO::PARAM_INT; - $statement->bindParam($i + 1, $parameters[$i], $type); - } - $q = $statement->execute(); self::_log_query($query, $parameters, $connection_name, (microtime(true)-$time)); -- cgit v1.2.3