少了个`.` (#2068)
Reviewed-on: https://gitea.com/xorm/xorm/pulls/2068 Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: stepbystep2 <stepbystep2@noreply.gitea.io> Co-committed-by: stepbystep2 <stepbystep2@noreply.gitea.io>
This commit is contained in:
parent
5feff03a17
commit
a22f5dce83
|
@ -214,7 +214,7 @@ type UserDetail struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
var users []UserDetail
|
var users []UserDetail
|
||||||
err := engine.Table("user").Select("user.*, detail.*")
|
err := engine.Table("user").Select("user.*, detail.*").
|
||||||
Join("INNER", "detail", "detail.user_id = user.id").
|
Join("INNER", "detail", "detail.user_id = user.id").
|
||||||
Where("user.name = ?", name).Limit(10, 0).
|
Where("user.name = ?", name).Limit(10, 0).
|
||||||
Find(&users)
|
Find(&users)
|
||||||
|
|
Loading…
Reference in New Issue