1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-03 16:50:19 +00:00
This commit is contained in:
slene
2013-11-01 18:32:03 +08:00
parent 00abdcd0a1
commit a4df6e403c
2 changed files with 14 additions and 9 deletions

View File

@ -1513,7 +1513,8 @@ func TestRawPrepare(t *testing.T) {
func TestUpdate(t *testing.T) {
qs := dORM.QueryTable("user")
num, err := qs.Filter("user_name", "slene").Filter("is_staff", false).Update(Params{
"is_staff": true,
"is_staff": true,
"is_active": true,
})
throwFail(t, err)
throwFail(t, AssertIs(num, 1))