Skip to content

Commit

Permalink
Added $length parameter to Driver/Statement interface so it follows
Browse files Browse the repository at this point in the history
previous changes in bindparam function
  • Loading branch information
ivan committed Jul 7, 2012
1 parent ba7aa61 commit 4a6cfd9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Doctrine/DBAL/Driver/Statement.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,10 @@ function bindValue($param, $value, $type = null);
* @param integer $type Explicit data type for the parameter using the PDO::PARAM_* constants. To return
* an INOUT parameter from a stored procedure, use the bitwise OR operator to set the
* PDO::PARAM_INPUT_OUTPUT bits for the data_type parameter.
* @param integer $length You must specify maxlength when using an OUT bind so that PHP allocates enough memory to hold the returned value.
* @return boolean Returns TRUE on success or FALSE on failure.
*/
function bindParam($column, &$variable, $type = null);
function bindParam($column, &$variable, $type = null, $length = null);

/**
* errorCode
Expand Down

0 comments on commit 4a6cfd9

Please sign in to comment.