From cfa88b908c42f1079f9e4ac4390468474b2b709f Mon Sep 17 00:00:00 2001 From: "limo.creed" Date: Wed, 8 Apr 2020 02:20:36 +0000 Subject: [PATCH] fix context not deliver in QueryStructContext (#1645) fix context not deliver in QueryStructContext Co-authored-by: yuxiao.lu Reviewed-on: https://gitea.com/xorm/xorm/pulls/1645 Reviewed-by: Lunny Xiao --- core/stmt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/stmt.go b/core/stmt.go index 4b1c7605..ebf2af73 100644 --- a/core/stmt.go +++ b/core/stmt.go @@ -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) {