Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ono-yoko committed Jul 25, 2019
1 parent de33d38 commit 48f8890
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions expression/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3564,14 +3564,12 @@ func (s *testIntegrationSuite) TestTimeLiteral(c *C) {
c.Assert(terror.ErrorEqual(err, types.ErrIncorrectDatetimeValue.GenWithStackByArgs("20171231235959.999999")), IsTrue)

_, err = tk.Exec("select ADDDATE('2008-01-34', -1);")
c.Assert(err, NotNil)

c.Assert(terror.ErrorEqual(err, types.ErrIncorrectDatetimeValue.GenWithStackByArgs("2008-01-34")), IsTrue)
tk.MustQuery("Show warnings;").Check(testutil.RowsWithSep("|",
"Warning|1292|Incorrect datetime value: '2008-1-34'"))
}

func (s *testIntegrationSuite) TestTimestampLiteral(c *C) {
defer s.cleanEnv(c)

tk := testkit.NewTestKit(c, s.store)

r := tk.MustQuery("select timestamp '2017-01-01 00:00:00';")
Expand Down

0 comments on commit 48f8890

Please sign in to comment.