mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 17:40:55 +00:00
little fix
This commit is contained in:
parent
af4464ce58
commit
7abdb05f91
@ -464,6 +464,7 @@ func TestNullDataTypes(t *testing.T) {
|
|||||||
Q := dDbBaser.TableQuote()
|
Q := dDbBaser.TableQuote()
|
||||||
num, err = dORM.Raw(fmt.Sprintf("SELECT * FROM %sdata_null%s where id=?", Q, Q), 3).QueryRows(&dnList)
|
num, err = dORM.Raw(fmt.Sprintf("SELECT * FROM %sdata_null%s where id=?", Q, Q), 3).QueryRows(&dnList)
|
||||||
throwFailNow(t, err)
|
throwFailNow(t, err)
|
||||||
|
throwFailNow(t, AssertIs(num, 1))
|
||||||
equal := reflect.DeepEqual(*dnList[0], d)
|
equal := reflect.DeepEqual(*dnList[0], d)
|
||||||
throwFailNow(t, AssertIs(equal, true))
|
throwFailNow(t, AssertIs(equal, true))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user