Fix issue were identifier operands in /,* arithmetic terms were not checked to see if they're query components
This commit is contained in:
parent
d7e7baf2a2
commit
55d4f515af
@ -2272,7 +2272,9 @@ class SqlWalker implements TreeWalker
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user