From a43e37cc4ce3279341de6b7aa48859a003d5dfb9 Mon Sep 17 00:00:00 2001 From: "yuxiao.lu" Date: Thu, 2 Apr 2020 16:18:37 +0800 Subject: [PATCH] fix context not deliver in QueryStructContext --- 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) {