Skip to content

Commit

Permalink
Merge pull request #6 from siddontang/fix-mysqldef-test
Browse files Browse the repository at this point in the history
Fix mysqldef test
  • Loading branch information
ngaut committed Sep 6, 2015
2 parents 51bc5b4 + 18140c6 commit d16503f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions mysqldef/time.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ var (

var (
// MinDatetime is the minimum for mysql datetime type.
MinDatetime = time.Date(1000, 1, 1, 0, 0, 0, 0, time.UTC)
MinDatetime = time.Date(1000, 1, 1, 0, 0, 0, 0, time.Local)
// MaxDatetime is the maximum for mysql datetime type.
MaxDatetime = time.Date(9999, 12, 31, 23, 59, 59, 999999, time.UTC)
MaxDatetime = time.Date(9999, 12, 31, 23, 59, 59, 999999, time.Local)

// MinTimestamp is the minimum for mysql timestamp type.
MinTimestamp = time.Date(1970, 1, 1, 0, 0, 1, 0, time.UTC)
Expand Down
1 change: 0 additions & 1 deletion mysqldef/time_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,6 @@ func (s *testTimeSuite) TestParseTimeFromNum(c *C) {
{-1, true, zeroDatetimeStr, true, zeroTimestampStr, true, zeroDateStr},
{99999999999999, true, zeroDatetimeStr, true, zeroTimestampStr, true, zeroDateStr},
{100000000000000, true, zeroDatetimeStr, true, zeroTimestampStr, true, zeroDateStr},
{10000101000000, true, zeroDatetimeStr, true, zeroTimestampStr, true, zeroDateStr},
{10000102000000, false, "1000-01-02 00:00:00", true, zeroTimestampStr, false, "1000-01-02"},
{700101000000, false, "1970-01-01 00:00:00", true, zeroTimestampStr, false, "1970-01-01"},
{991231235959, false, "1999-12-31 23:59:59", false, "1999-12-31 23:59:59", false, "1999-12-31"},
Expand Down

0 comments on commit d16503f

Please sign in to comment.