Skip to content

Commit

Permalink
fix TestJoinSystemTableContainsView
Browse files Browse the repository at this point in the history
  • Loading branch information
tangenta committed Feb 20, 2023
1 parent b0300c2 commit c42cf52
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions executor/infoschema_reader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -983,11 +983,11 @@ func (s *testInfoschemaTableSuite) TestTablesPKType(c *C) {
}

// https://github.com/pingcap/tidb/issues/32459.
func TestJoinSystemTableContainsView(t *testing.T) {
store, clean := testkit.CreateMockStore(t)
defer clean()
tk := testkit.NewTestKit(t, store)
func (s *testInfoschemaTableSuite) TestJoinSystemTableContainsView(c *C) {
tk := testkit.NewTestKit(c, s.store)
tk.MustExec("use test")
tk.MustExec("drop table if exists t;")
tk.MustExec("drop view if exists v;")
tk.MustExec("create table t (a timestamp, b int);")
tk.MustExec("insert into t values (null, 100);")
tk.MustExec("create view v as select * from t;")
Expand Down Expand Up @@ -1038,4 +1038,6 @@ SELECT
;
`).Check(testkit.Rows("t a b"))
}
tk.MustExec("drop table if exists t;")
tk.MustExec("drop view if exists v;")
}

0 comments on commit c42cf52

Please sign in to comment.