1
0
mirror of https://github.com/astaxie/beego.git synced 2025-06-11 08:50:39 +00:00

orm operator args now support multi types eg: []int []*int *int, Model *Model

This commit is contained in:
slene
2013-08-08 22:34:18 +08:00
parent 9047d21ec5
commit 8563000235
4 changed files with 134 additions and 18 deletions

View File

@ -18,7 +18,7 @@ fmt.Println(o.Delete(user))
o := orm.NewOrm()
user := User{Id: 1}
o.Read(&user)
err = o.Read(&user)
if err == sql.ErrNoRows {
fmt.Println("查询不到")