summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.');