Merge pull request #539 from pingcap/qiuyesuifeng/fix-mybatis-test

*: fix mybatis test error.
This commit is contained in:
goroutine
2015-11-08 11:13:44 +08:00
2 changed files with 3 additions and 3 deletions

View File

@ -375,11 +375,11 @@ func (n *FuncDateArithExpr) Accept(v Visitor) (Node, bool) {
n.Date = node.(ExprNode)
}
if n.Interval != nil {
node, ok := n.Date.Accept(v)
node, ok := n.Interval.Accept(v)
if !ok {
return n, false
}
n.Date = node.(ExprNode)
n.Interval = node.(ExprNode)
}
return v.Leave(n)
}

View File

@ -108,7 +108,7 @@ type Visitor interface {
VisitFunctionTrim(v *FunctionTrim) (Expression, error)
// VisitDateArith visits DateArith expression.
VisitDateArith(dc *DateArith) (Expression, error)
VisitDateArith(da *DateArith) (Expression, error)
}
// BaseVisitor is the base implementation of Visitor.