@@ -11,7 +11,7 @@ extension PartialSelectStatement {
1111 public func union(
1212 all: Bool = false ,
1313 _ other: some PartialSelectStatement < QueryValue >
14- ) -> some PartialSelectStatement < QueryValue > {
14+ ) -> some PartialSelectStatement < QueryValue > & Sendable {
1515 CompoundSelect ( lhs: self , operator: all ? . unionAll : . union, rhs: other)
1616 }
1717
@@ -25,7 +25,7 @@ extension PartialSelectStatement {
2525 /// - Returns: A compound select statement.
2626 public func intersect< F, J> (
2727 _ other: some SelectStatement < QueryValue , F , J >
28- ) -> some PartialSelectStatement < QueryValue > {
28+ ) -> some PartialSelectStatement < QueryValue > & Sendable {
2929 CompoundSelect ( lhs: self , operator: . intersect, rhs: other)
3030 }
3131
@@ -38,12 +38,12 @@ extension PartialSelectStatement {
3838 /// - Returns: A compound select statement.
3939 public func except< F, J> (
4040 _ other: some SelectStatement < QueryValue , F , J >
41- ) -> some PartialSelectStatement < QueryValue > {
41+ ) -> some PartialSelectStatement < QueryValue > & Sendable {
4242 CompoundSelect ( lhs: self , operator: . except, rhs: other)
4343 }
4444}
4545
46- private struct CompoundSelect < QueryValue> : PartialSelectStatement {
46+ private struct CompoundSelect < QueryValue> : PartialSelectStatement , Sendable {
4747 typealias From = Never
4848 typealias Joins = Never
4949
0 commit comments