Commit 16c32e2b authored by pookey's avatar pookey

Fixing bindParam(), which should have it's 2nd param passed by reference, not value

parent 4d38b322
......@@ -85,7 +85,7 @@ interface Doctrine_Adapter_Statement_Interface
* @param mixed $driverOptions
* @return boolean Returns TRUE on success or FALSE on failure.
*/
public function bindParam($column, $variable, $type = null, $length = null, $driverOptions = array());
public function bindParam($column, &$variable, $type = null, $length = null, $driverOptions = array());
/**
* closeCursor
* Closes the cursor, enabling the statement to be executed again.
......
......@@ -100,7 +100,7 @@ class Doctrine_Adapter_Statement_Mock implements Doctrine_Adapter_Statement_Inte
* @param mixed $driverOptions
* @return boolean Returns TRUE on success or FALSE on failure.
*/
public function bindParam($column, $variable, $type = null, $length = null, $driverOptions = array())
public function bindParam($column, &$variable, $type = null, $length = null, $driverOptions = array())
{
}
......
......@@ -144,7 +144,7 @@ class Doctrine_Connection_Statement implements Doctrine_Adapter_Statement_Interf
* @param mixed $driverOptions
* @return boolean Returns TRUE on success or FALSE on failure.
*/
public function bindParam($column, $variable, $type = null, $length = null, $driverOptions = array())
public function bindParam($column, &$variable, $type = null, $length = null, $driverOptions = array())
{
if ($type === null) {
return $this->_stmt->bindParam($column, $variable);
......@@ -435,4 +435,4 @@ class Doctrine_Connection_Statement implements Doctrine_Adapter_Statement_Interf
{
return $this->_stmt->setFetchMode($mode, $arg1, $arg2);
}
}
\ No newline at end of file
}
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