1
0
mirror of synced 2024-12-13 14:56:01 +03:00

Fixed errors:

- Typo in variable name in JoinClassPathExpression;
 - Undefined class AST\ArithmeticPrimary (x2);
 - QueryException::invalidPathExpression() expects a PathExpression, not a string.
This commit is contained in:
Benjamin Morel 2012-11-05 14:45:57 -08:00
parent fc40c437cb
commit 88b29a4e59
2 changed files with 2 additions and 4 deletions

View File

@ -40,6 +40,6 @@ class JoinClassPathExpression extends Node
public function dispatch($walker)
{
return $sqlWalker->walkJoinPathExpression($this);
return $walker->walkJoinPathExpression($this);
}
}

View File

@ -1172,7 +1172,7 @@ class SqlWalker implements TreeWalker
switch (true) {
case ($expr instanceof AST\PathExpression):
if ($expr->type !== AST\PathExpression::TYPE_STATE_FIELD) {
throw QueryException::invalidPathExpression($expr->type);
throw QueryException::invalidPathExpression($expr);
}
$fieldName = $expr->field;
@ -1213,7 +1213,6 @@ class SqlWalker implements TreeWalker
case ($expr instanceof AST\SimpleArithmeticExpression):
case ($expr instanceof AST\ArithmeticTerm):
case ($expr instanceof AST\ArithmeticFactor):
case ($expr instanceof AST\ArithmeticPrimary):
case ($expr instanceof AST\Literal):
case ($expr instanceof AST\NullIfExpression):
case ($expr instanceof AST\CoalesceExpression):
@ -1513,7 +1512,6 @@ class SqlWalker implements TreeWalker
case ($expr instanceof AST\SimpleArithmeticExpression):
case ($expr instanceof AST\ArithmeticTerm):
case ($expr instanceof AST\ArithmeticFactor):
case ($expr instanceof AST\ArithmeticPrimary):
case ($expr instanceof AST\Literal):
case ($expr instanceof AST\NullIfExpression):
case ($expr instanceof AST\CoalesceExpression):