From ca8cacde0609c05078de54a288f5bc76887f8834 Mon Sep 17 00:00:00 2001 From: Soufiane Ghzal Date: Sat, 7 Jun 2014 20:58:23 +0200 Subject: Update idiorm.php --- idiorm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/idiorm.php b/idiorm.php index ae80abe..a251ed7 100644 --- a/idiorm.php +++ b/idiorm.php @@ -417,7 +417,7 @@ 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->bindParams($i + 1, $parameters[$i], $type); + $statement->bindParam($i + 1, $parameters[$i], $type); } $q = $statement->execute(); -- cgit v1.2.3 From 9a2dfbf87d702db721910f46614a9b35ac79fe10 Mon Sep 17 00:00:00 2001 From: Soufiane Ghzal Date: Sun, 8 Jun 2014 11:05:00 +0200 Subject: update bindParams to bindParam --- test/bootstrap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/bootstrap.php b/test/bootstrap.php index 8790dc7..3b3cace 100644 --- a/test/bootstrap.php +++ b/test/bootstrap.php @@ -46,7 +46,7 @@ class MockPDOStatement extends PDOStatement { /** * Add data to arrays */ - public function bindParams($index, $value, $type) + public function bindParam($index, $value, $type) { // Do check on index, and type if (!is_int($index)) throw new Exception('Incorrect parameter type. Expected $index to be an integer.'); -- cgit v1.2.3