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:
parent
7e981f5f5e
commit
cfa88b908c
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue