diff --git a/executor/show_test.go b/executor/show_test.go index 229d4399dae4d..84abc1f337ce1 100644 --- a/executor/show_test.go +++ b/executor/show_test.go @@ -107,9 +107,9 @@ func (s *testSuite5) TestShowWarnings(c *C) { tk.MustExec("set @@sql_mode=''") tk.MustExec("insert show_warnings values ('a')") c.Assert(tk.Se.GetSessionVars().StmtCtx.WarningCount(), Equals, uint16(1)) - tk.MustQuery("show warnings").Check(testutil.RowsWithSep("|", "Warning|1292|Truncated incorrect DOUBLE value: 'a'")) + tk.MustQuery("show warnings").Check(testutil.RowsWithSep("|", "Warning|1366|Incorrect int value: 'a' for column 'a' at row 1")) c.Assert(tk.Se.GetSessionVars().StmtCtx.WarningCount(), Equals, uint16(0)) - tk.MustQuery("show warnings").Check(testutil.RowsWithSep("|", "Warning|1292|Truncated incorrect DOUBLE value: 'a'")) + tk.MustQuery("show warnings").Check(testutil.RowsWithSep("|", "Warning|1366|Incorrect int value: 'a' for column 'a' at row 1")) c.Assert(tk.Se.GetSessionVars().StmtCtx.WarningCount(), Equals, uint16(0)) // Test Warning level 'Error'