Merge pull request #539 from pingcap/qiuyesuifeng/fix-mybatis-test
*: fix mybatis test error.
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
||||
@ -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.
|
||||
|
||||
Reference in New Issue
Block a user