Skip to content

Commit

Permalink
fix UT session variable
Browse files Browse the repository at this point in the history
  • Loading branch information
sylzd committed Jul 5, 2021
1 parent ecfbd3f commit 66fa1bd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions executor/join_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2604,6 +2604,8 @@ func (s *testSuiteJoinSerial) TestIssue25902(c *C) {
tk.MustExec("insert into tt3 values (\"2001-01-01 00:00:00\");")
tk.MustQuery("select * from tt1 where ts in (select ts from tt2);").Check(testkit.Rows("2001-01-01 00:00:00"))
tk.MustQuery("select * from tt1 where ts in (select ts from tt3);").Check(testkit.Rows("2001-01-01 00:00:00"))
tk.MustExec("set @tmp=(select @@session.time_zone);")
tk.MustExec("set @@session.time_zone = '+10:00';")
tk.MustQuery("select * from tt1 where ts in (select ts from tt2);").Check(testkit.Rows())
tk.MustExec("set @@session.time_zone = @tmp;")
}

0 comments on commit 66fa1bd

Please sign in to comment.