1
0
mirror of synced 2025-02-02 13:31:45 +03:00

Fix issue were identifier operands in /,* arithmetic terms were not checked to see if they're query components

This commit is contained in:
Bill Schaller 2016-01-08 12:53:05 -05:00 committed by Marco Pivetta
parent 6279c80e05
commit c4209b4654

View File

@ -2264,7 +2264,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