fix context not deliver in QueryStructContext

This commit is contained in:
yuxiao.lu 2020-04-02 16:18:37 +08:00
parent 410c2de923
commit a43e37cc4c
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) {