diff options
author | Simon Holywell <[email protected]> | 2014-06-18 08:57:59 +0100 |
---|---|---|
committer | Simon Holywell <[email protected]> | 2014-06-18 08:57:59 +0100 |
commit | 0770bdef774706fcf4a821c53b209293e87119bb (patch) | |
tree | 7fc293a64ff8cd32010718628a2bf4099b115929 | |
parent | 36aeaa64ea569619629d88676abda70caecf3828 (diff) | |
parent | 9a2dfbf87d702db721910f46614a9b35ac79fe10 (diff) |
Merge pull request #208 from SneakyBobito/patch-1
Fix bindParams to bindParam
-rw-r--r-- | idiorm.php | 2 | ||||
-rw-r--r-- | test/bootstrap.php | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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(); 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.'); |