Skip to content

Commit

Permalink
session: add a test case to cover batch point get for temporary table (
Browse files Browse the repository at this point in the history
  • Loading branch information
mmyj authored May 11, 2021
1 parent c8bc701 commit 81ce996
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions session/session_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4296,6 +4296,8 @@ func (s *testSessionSuite3) TestGlobalTemporaryTable(c *C) {
tk.MustQuery("select c from g_tmp where b = 3").Check(testkit.Rows("3"))
// Cover point get.
tk.MustQuery("select * from g_tmp where a = 3").Check(testkit.Rows("3 3 3"))
// Cover batch point get.
tk.MustQuery("select * from g_tmp where a in (2,3,4)").Check(testkit.Rows("3 3 3", "4 7 9"))
tk.MustExec("commit")

// The global temporary table data is discard after the transaction commit.
Expand Down

0 comments on commit 81ce996

Please sign in to comment.