1
0
mirror of synced 2025-01-18 14:31:40 +03:00

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

This commit is contained in:
pookey 2007-10-09 13:24:31 +00:00
parent 4d38b32209
commit 16c32e2bd6
3 changed files with 4 additions and 4 deletions

View File

@ -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.

View File

@ -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())
{
}

View File

@ -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);
}
}
}