diff --git a/planner/core/planbuilder.go b/planner/core/planbuilder.go index 82237a2890c85..ee723274ff50d 100644 --- a/planner/core/planbuilder.go +++ b/planner/core/planbuilder.go @@ -249,7 +249,7 @@ func (b *PlanBuilder) buildSet(v *ast.SetStmt) (Plan, error) { p := &Set{} for _, vars := range v.Variables { if vars.IsGlobal { - b.visitInfo = appendVisitInfo(b.visitInfo, mysql.SuperPriv, "", "", "") + b.visitInfo = appendVisitInfo(b.visitInfo, mysql.SuperPriv, "", "", "", nil) } assign := &expression.VarAssignment{ Name: vars.Name,