Commit d642fb96 authored by guilhermeblanco's avatar guilhermeblanco

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

parent 527c9e76
...@@ -45,7 +45,7 @@ class ModFunction extends FunctionNode ...@@ -45,7 +45,7 @@ class ModFunction extends FunctionNode
public function getSql(\Doctrine\ORM\Query\SqlWalker $sqlWalker) public function getSql(\Doctrine\ORM\Query\SqlWalker $sqlWalker)
{ {
//TODO: Use platform to get SQL //TODO: Use platform to get SQL
return 'SQRT(' return 'MOD('
. $sqlWalker->walkSimpleArithmeticExpression($this->_firstSimpleArithmeticExpression) . $sqlWalker->walkSimpleArithmeticExpression($this->_firstSimpleArithmeticExpression)
. ', ' . ', '
. $sqlWalker->walkSimpleArithmeticExpression($this->_secondSimpleArithmeticExpression) . $sqlWalker->walkSimpleArithmeticExpression($this->_secondSimpleArithmeticExpression)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment