Commit 7ab6bbe0 authored by ivan's avatar ivan Committed by Benjamin Eberlei

Fixed bindParam function so it implements interface

parent 1bdd5640
......@@ -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;
......
......@@ -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';
......
......@@ -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;
......
......@@ -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.");
......
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment