1
0
mirror of synced 2024-12-12 22:36:02 +03:00

[2.0][DDC-307] Fixed wrong generation of SQL when using MOD() function

This commit is contained in:
guilhermeblanco 2010-02-10 01:34:47 +00:00
parent 527c9e760f
commit d642fb9642

View File

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