1
0
mirror of synced 2024-12-13 22:56:04 +03:00

[2.0][DDC-382] Fixed wrong DQL function call. Thanks Ismo for report and patch.

This commit is contained in:
guilhermeblanco 2010-03-01 03:55:02 +00:00
parent 74a4328833
commit 07fd878985

View File

@ -463,16 +463,16 @@ class Expr
} }
/** /**
* Creates a SUBSTR() function expression with the given arguments. * Creates a SUBSTRING() function expression with the given arguments.
* *
* @param mixed $x Argument to be used as string to be cropped by SUBSTR() function. * @param mixed $x Argument to be used as string to be cropped by SUBSTRING() function.
* @param integer $from Initial offset to start cropping string. May accept negative values. * @param integer $from Initial offset to start cropping string. May accept negative values.
* @param integer $len Length of crop. May accept negative values. * @param integer $len Length of crop. May accept negative values.
* @return Expr\Func * @return Expr\Func
*/ */
public function substr($x, $from, $len) public function substring($x, $from, $len)
{ {
return new Expr\Func('SUBSTR', array($x, $from, $len)); return new Expr\Func('SUBSTRING', array($x, $from, $len));
} }
/** /**