少了个`.` (#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:
stepbystep2 2021-11-09 17:55:37 +08:00 committed by Lunny Xiao
parent 5feff03a17
commit a22f5dce83
1 changed files with 1 additions and 1 deletions

View File

@ -214,7 +214,7 @@ type UserDetail struct {
}
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").
Where("user.name = ?", name).Limit(10, 0).
Find(&users)