1
0
mirror of synced 2025-02-02 21:41: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
parent d7e7baf2a2
commit 55d4f515af

View File

@ -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