Skip to content

Commit

Permalink
recover InSelectStmt flat after test
Browse files Browse the repository at this point in the history
  • Loading branch information
amyangfei committed Jul 26, 2019
1 parent c486132 commit b5f0657
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions expression/builtin_cast_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,11 @@ func (s *testEvaluatorSuite) TestCast(c *C) {
c.Assert(terror.ErrorEqual(errWarnAllowedPacketOverflowed, lastWarn.Err), IsTrue, Commentf("err %v", lastWarn.Err))

origSc := sc
oldInSelectStmt := sc.InSelectStmt
sc.InSelectStmt = true
defer func() {
sc.InSelectStmt = oldInSelectStmt
}()
sc.OverflowAsWarning = true

// cast('18446744073709551616' as unsigned);
Expand Down

0 comments on commit b5f0657

Please sign in to comment.