Skip to content

Commit

Permalink
types: make golangci-lint happy (#24037)
Browse files Browse the repository at this point in the history
  • Loading branch information
xhebox authored Apr 15, 2021
1 parent 3e58fbf commit 2852b31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/time_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -568,10 +568,10 @@ func (s *testTimeSuite) TestCodec(c *C) {
sc := &stmtctx.StatementContext{TimeZone: time.UTC}

// MySQL timestamp value doesn't allow month=0 or day=0.
t, err := types.ParseTimestamp(sc, "2016-12-00 00:00:00")
_, err := types.ParseTimestamp(sc, "2016-12-00 00:00:00")
c.Assert(err, NotNil)

t, err = types.ParseTimestamp(sc, "2010-10-10 10:11:11")
t, err := types.ParseTimestamp(sc, "2010-10-10 10:11:11")
c.Assert(err, IsNil)
_, err = t.ToPackedUint()
c.Assert(err, IsNil)
Expand Down

0 comments on commit 2852b31

Please sign in to comment.