Skip to content

Commit

Permalink
Fix issue were identifier operands in /,* arithmetic terms were not c…
Browse files Browse the repository at this point in the history
…hecked to see if they're query components
  • Loading branch information
Bill Schaller committed Jan 8, 2016
1 parent d7e7baf commit 55d4f51
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Doctrine/ORM/Query/SqlWalker.php
Original file line number Diff line number Diff line change
Expand Up @@ -2272,7 +2272,9 @@ public function walkArithmeticTerm($term)
public function walkArithmeticFactor($factor)
{
if (is_string($factor)) {
return $factor;
return (isset($this->queryComponents[$factor]))
? $this->walkResultVariable($this->queryComponents[$factor]['token']['value'])
: $factor;
}

// Phase 2 AST optimization: Skip processing of ArithmeticFactor
Expand Down

0 comments on commit 55d4f51

Please sign in to comment.