mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
propagate context to From selector in (*query).selector (#4501)
This commit is contained in:
@@ -1070,6 +1070,7 @@ func (q *query) selector(ctx context.Context) (*sql.Selector, error) {
|
||||
WithContext(ctx)
|
||||
if q.From != nil {
|
||||
selector = q.From
|
||||
selector.WithContext(ctx)
|
||||
}
|
||||
selector.Select(selector.Columns(q.Node.Columns...)...)
|
||||
if order := q.Order; order != nil {
|
||||
|
||||
Reference in New Issue
Block a user