From 216247be1b94316c3715e4954b46e683fa42d282 Mon Sep 17 00:00:00 2001 From: Nash Tsai Date: Wed, 25 Dec 2013 12:55:00 +0800 Subject: [PATCH] fixed wrong logic in tests --- base_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base_test.go b/base_test.go index d01234c2..fe5a5150 100644 --- a/base_test.go +++ b/base_test.go @@ -3160,7 +3160,7 @@ 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 { if (*nullDataGet.TimePtr).Unix() != (*nullDataUpdate.TimePtr).Unix() { t.Error(errors.New(fmt.Sprintf("inserted value unmatch: [%v]:[%v]", *nullDataGet.TimePtr, *nullDataUpdate.TimePtr))) } else {