Fixing bindParam(), which should have it's 2nd param passed by reference, not value
This commit is contained in:
parent
4d38b32209
commit
16c32e2bd6
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user