Skip to content

Commit

Permalink
fix drop view if exist error (pingcap#7833)
Browse files Browse the repository at this point in the history
  • Loading branch information
tianjiqx committed Oct 15, 2018
1 parent 1730798 commit 3a15439
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions planner/core/planbuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,8 @@ func (b *PlanBuilder) buildDo(v *ast.DoStmt) (Plan, error) {
RetType: expr.GetType(),
})
}
//make dual schema if not
var _ = dual.Schema()
p.SetChildren(dual)
p.self = p
p.SetSchema(schema)
Expand Down

0 comments on commit 3a15439

Please sign in to comment.