From 8b36da593984ad24075408965b787941ee17289e Mon Sep 17 00:00:00 2001 From: Arne Luenser Date: Mon, 13 Feb 2023 19:36:37 +0100 Subject: [PATCH] fix: trace SQL in TraverseSubjectSetExpansion --- internal/persistence/sql/traverser.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/persistence/sql/traverser.go b/internal/persistence/sql/traverser.go index d125b9320..b0fb6c2c6 100644 --- a/internal/persistence/sql/traverser.go +++ b/internal/persistence/sql/traverser.go @@ -71,7 +71,7 @@ func (t *Traverser) TraverseSubjectSetExpansion(ctx context.Context, start *rela rows []*subjectExpandedRelationTupleRow limit = 1000 ) - err = t.conn.RawQuery(fmt.Sprintf(` + err = t.conn.WithContext(ctx).RawQuery(fmt.Sprintf(` SELECT current.shard_id AS shard_id, current.subject_set_namespace AS namespace, current.subject_set_object AS object,