[2.0][DDC-307] Fixed wrong generation of SQL when using MOD() function
This commit is contained in:
parent
527c9e760f
commit
d642fb9642
@ -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…
Reference in New Issue
Block a user