This commit is contained in:
Lunny Xiao 2020-01-19 20:31:10 +08:00
parent 425cbed8ee
commit dd03f17ffa
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
1 changed files with 1 additions and 1 deletions

View File

@ -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)