From dd03f17ffafb3996596d5551575bce3b72c241a8 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Sun, 19 Jan 2020 20:31:10 +0800 Subject: [PATCH] fix vet --- types_null_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types_null_test.go b/types_null_test.go index 9e584c78..d2cfc66c 100644 --- a/types_null_test.go +++ b/types_null_test.go @@ -165,7 +165,7 @@ func TestNullStructUpdate(t *testing.T) { if true { // 测试In update item := new(NullType) - item.Age = sql.NullInt64{23, true} + item.Age = sql.NullInt64{Int64: 23, Valid: true} affected, err := testEngine.In(idName, 3, 4).Cols(ageName, heightName, isManName).Update(item) assert.NoError(t, err) assert.EqualValues(t, 2, affected)