1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-03 18:00:17 +00:00
This commit is contained in:
astaxie
2014-04-11 16:08:43 +08:00
parent 05e5baaa9f
commit 4245521660
24 changed files with 10 additions and 47 deletions

View File

@ -282,10 +282,10 @@ func TestNullDataTypes(t *testing.T) {
d = DataNull{
DateTime: time.Now(),
NullString: sql.NullString{"test", true},
NullBool: sql.NullBool{true, true},
NullInt64: sql.NullInt64{42, true},
NullFloat64: sql.NullFloat64{42.42, true},
NullString: sql.NullString{String: "test", Valid: true},
NullBool: sql.NullBool{Bool: true, Valid: true},
NullInt64: sql.NullInt64{Int64: 42, Valid: true},
NullFloat64: sql.NullFloat64{Float64: 42.42, Valid: true},
}
id, err = dORM.Insert(&d)