From 2147fc4a3189860a346b911af07a4f7d98b3d731 Mon Sep 17 00:00:00 2001
From: ivan <ivan@aduro.hr>
Date: Sat, 7 Jul 2012 21:01:42 +0200
Subject: [PATCH] Fixed bindParam function so it implements interface

---
 lib/Doctrine/DBAL/Driver/IBMDB2/DB2Statement.php    | 2 +-
 lib/Doctrine/DBAL/Driver/Mysqli/MysqliStatement.php | 2 +-
 lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php     | 4 ++--
 lib/Doctrine/DBAL/Driver/SQLSrv/SQLSrvStatement.php | 4 ++--
 lib/Doctrine/DBAL/Portability/Statement.php         | 2 +-
 5 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/lib/Doctrine/DBAL/Driver/IBMDB2/DB2Statement.php b/lib/Doctrine/DBAL/Driver/IBMDB2/DB2Statement.php
index 9e88ebea4..9a43f9fa9 100644
--- a/lib/Doctrine/DBAL/Driver/IBMDB2/DB2Statement.php
+++ b/lib/Doctrine/DBAL/Driver/IBMDB2/DB2Statement.php
@@ -56,7 +56,7 @@ class DB2Statement implements \IteratorAggregate, Statement
     /**
      * {@inheritdoc}
      */
-    public function bindParam($column, &$variable, $type = null)
+    public function bindParam($column, &$variable, $type = null, $length = null)
     {
         $this->_bindParam[$column] =& $variable;
 
diff --git a/lib/Doctrine/DBAL/Driver/Mysqli/MysqliStatement.php b/lib/Doctrine/DBAL/Driver/Mysqli/MysqliStatement.php
index 45ce53af9..2eaa8fd8a 100644
--- a/lib/Doctrine/DBAL/Driver/Mysqli/MysqliStatement.php
+++ b/lib/Doctrine/DBAL/Driver/Mysqli/MysqliStatement.php
@@ -86,7 +86,7 @@ class MysqliStatement implements \IteratorAggregate, Statement
     /**
      * {@inheritdoc}
      */
-    public function bindParam($column, &$variable, $type = null)
+    public function bindParam($column, &$variable, $type = null, $length = null)
     {
         if (null === $type) {
             $type = 's';
diff --git a/lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php b/lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php
index 805058865..8bf3121c3 100644
--- a/lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php
+++ b/lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php
@@ -106,13 +106,13 @@ class OCI8Statement implements \IteratorAggregate, Statement
      */
     public function bindValue($param, $value, $type = null)
     {
-        return $this->bindParam($param, $value, $type);
+        return $this->bindParam($param, $value, $type, null);
     }
 
     /**
      * {@inheritdoc}
      */
-    public function bindParam($column, &$variable, $type = null)
+    public function bindParam($column, &$variable, $type = null,$length = null)
     {
         $column = isset($this->_paramMap[$column]) ? $this->_paramMap[$column] : $column;
 
diff --git a/lib/Doctrine/DBAL/Driver/SQLSrv/SQLSrvStatement.php b/lib/Doctrine/DBAL/Driver/SQLSrv/SQLSrvStatement.php
index 86817557b..76a156b3e 100644
--- a/lib/Doctrine/DBAL/Driver/SQLSrv/SQLSrvStatement.php
+++ b/lib/Doctrine/DBAL/Driver/SQLSrv/SQLSrvStatement.php
@@ -102,13 +102,13 @@ class SQLSrvStatement implements IteratorAggregate, Statement
 
     public function bindValue($param, $value, $type = null)
     {
-        return $this->bindParam($param, $value, $type);
+        return $this->bindParam($param, $value, $type,null);
     }
 
     /**
      * {@inheritdoc}
      */
-    public function bindParam($column, &$variable, $type = null)
+    public function bindParam($column, &$variable, $type = null, $length = null)
     {
         if (!is_numeric($column)) {
             throw new SQLSrvException("sqlsrv does not support named parameters to queries, use question mark (?) placeholders instead.");
diff --git a/lib/Doctrine/DBAL/Portability/Statement.php b/lib/Doctrine/DBAL/Portability/Statement.php
index 3416c8fa1..98076bdad 100644
--- a/lib/Doctrine/DBAL/Portability/Statement.php
+++ b/lib/Doctrine/DBAL/Portability/Statement.php
@@ -66,7 +66,7 @@ class Statement implements \IteratorAggregate, \Doctrine\DBAL\Driver\Statement
         $this->case = $conn->getFetchCase();
     }
 
-    public function bindParam($column, &$variable, $type = null)
+    public function bindParam($column, &$variable, $type = null,$length = null)
     {
         return $this->stmt->bindParam($column, $variable, $type);
     }
-- 
2.21.0