Skip to content

Commit

Permalink
add unit test for drop view
Browse files Browse the repository at this point in the history
  • Loading branch information
tianjiqx committed Oct 15, 2018
1 parent 3a15439 commit 4c1615d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions planner/core/preprocess_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,9 @@ func (s *testValidatorSuite) TestValidator(c *C) {
{"select * from ( select 1 ) a, (select 2) b;", true, nil},
{"select * from (select * from ( select 1 ) a join (select 2) b) b join (select 3) a;", false, nil},
{"select * from (select 1 ) a , (select 2) b, (select * from (select 3) a join (select 4) b) c;", false, nil},

//issue 7833
{"drop view if exists v;", true, nil},
}

store, dom, err := newStoreWithBootstrap()
Expand Down

0 comments on commit 4c1615d

Please sign in to comment.