mirror of
https://github.com/astaxie/beego.git
synced 2025-07-03 16:50:19 +00:00
fix #265
This commit is contained in:
@ -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))
|
||||
|
Reference in New Issue
Block a user