Fix issue were identifier operands in /,* arithmetic terms were not checked to see if they're query components
This commit is contained in:
parent
6279c80e05
commit
c4209b4654
@ -2264,7 +2264,9 @@ class SqlWalker implements TreeWalker
|
|||||||
public function walkArithmeticFactor($factor)
|
public function walkArithmeticFactor($factor)
|
||||||
{
|
{
|
||||||
if (is_string($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
|
// Phase 2 AST optimization: Skip processing of ArithmeticFactor
|
||||||
|
Loading…
x
Reference in New Issue
Block a user