[2.0][DDC-307] Fixed wrong generation of SQL when using MOD() function
This commit is contained in:
parent
527c9e760f
commit
d642fb9642
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ class ModFunction extends FunctionNode
|
|||
public function getSql(\Doctrine\ORM\Query\SqlWalker $sqlWalker)
|
||||
{
|
||||
//TODO: Use platform to get SQL
|
||||
return 'SQRT('
|
||||
return 'MOD('
|
||||
. $sqlWalker->walkSimpleArithmeticExpression($this->_firstSimpleArithmeticExpression)
|
||||
. ', '
|
||||
. $sqlWalker->walkSimpleArithmeticExpression($this->_secondSimpleArithmeticExpression)
|
||||
|
|
Loading…
Add table
Reference in a new issue