Skip to content

Commit

Permalink
fix a bug caused by ignoring the default operations in the switch
Browse files Browse the repository at this point in the history
  • Loading branch information
fzhedu committed Nov 13, 2020
1 parent 384e507 commit 29f5c58
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions planner/core/expression_rewriter.go
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,7 @@ func (er *expressionRewriter) Enter(inNode ast.Node) (ast.Node, bool) {
er.ctxStackAppend(er.schema.Columns[index], er.names[index])
return inNode, true
case *ast.FuncCallExpr:
er.asScalar = true
if _, ok := expression.DisableFoldFunctions[v.FnName.L]; ok {
er.disableFoldCounter++
}
Expand Down

0 comments on commit 29f5c58

Please sign in to comment.