fix context not deliver in QueryStructContext (#1645)

fix context not deliver in QueryStructContext

Co-authored-by: yuxiao.lu <yuxiao.lu@liulishuo.com>
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1645
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
limo.creed 2020-04-08 02:20:36 +00:00 committed by Lunny Xiao
parent 7e981f5f5e
commit cfa88b908c
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ func (s *Stmt) QueryStructContext(ctx context.Context, st interface{}) (*Rows, e
args[i] = vv.Elem().FieldByName(k).Interface()
}
return s.Query(args...)
return s.QueryContext(ctx, args...)
}
func (s *Stmt) QueryStruct(st interface{}) (*Rows, error) {