summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Holywell <[email protected]>2014-06-18 08:57:59 +0100
committerSimon Holywell <[email protected]>2014-06-18 08:57:59 +0100
commit0770bdef774706fcf4a821c53b209293e87119bb (patch)
tree7fc293a64ff8cd32010718628a2bf4099b115929
parent36aeaa64ea569619629d88676abda70caecf3828 (diff)
parent9a2dfbf87d702db721910f46614a9b35ac79fe10 (diff)
Merge pull request #208 from SneakyBobito/patch-1
Fix bindParams to bindParam
-rw-r--r--idiorm.php2
-rw-r--r--test/bootstrap.php2
2 files changed, 2 insertions, 2 deletions
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();
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.');