From 3f2328d918acee8fec84944637eed186e15c8816 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Thu, 26 Dec 2013 16:37:56 +0800 Subject: [PATCH] tests bug fixed --- base_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/base_test.go b/base_test.go index 70589159..84770168 100644 --- a/base_test.go +++ b/base_test.go @@ -3525,7 +3525,8 @@ func testNullValue(engine *Engine, t *testing.T) { // skipped postgres test due to postgres driver doesn't read time.Time's timzezone info when stored in the db // mysql and sqlite3 seem have done this correctly by storing datatime in UTC timezone, I think postgres driver // prefer using timestamp with timezone to sovle the issue - if engine.DriverName != POSTGRES && engine.DriverName != MYMYSQL { + if engine.DriverName != POSTGRES && engine.DriverName != MYMYSQL && + engine.DriverName != MYSQL { if (*nullDataGet.TimePtr).Unix() != (*nullDataUpdate.TimePtr).Unix() { t.Error(errors.New(fmt.Sprintf("inserted value unmatch: [%v]:[%v]", *nullDataGet.TimePtr, *nullDataUpdate.TimePtr))) } else {