Skip to content

Commit 2206af7

Browse files
committed
wip
1 parent c0f670c commit 2206af7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/StructuredQueriesCore/AggregateFunctions.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ where QueryValue: _OptionalPromotable, QueryValue._Optionalized.Wrapped == Strin
7272
}
7373
}
7474

75-
extension QueryExpression where QueryValue: QueryBindable {
75+
extension QueryExpression where QueryValue: QueryBindable & _OptionalPromotable {
7676
/// A maximum aggregate of this expression.
7777
///
7878
/// ```swift
@@ -84,7 +84,7 @@ extension QueryExpression where QueryValue: QueryBindable {
8484
/// - Returns: A maximum aggregate of this expression.
8585
public func max(
8686
filter: (some QueryExpression<Bool>)? = Bool?.none
87-
) -> some QueryExpression<QueryValue?> {
87+
) -> some QueryExpression<QueryValue._Optionalized.Wrapped?> {
8888
AggregateFunction("max", self, filter: filter)
8989
}
9090

@@ -99,7 +99,7 @@ extension QueryExpression where QueryValue: QueryBindable {
9999
/// - Returns: A minimum aggregate of this expression.
100100
public func min(
101101
filter: (some QueryExpression<Bool>)? = Bool?.none
102-
) -> some QueryExpression<QueryValue?> {
102+
) -> some QueryExpression<QueryValue._Optionalized.Wrapped?> {
103103
AggregateFunction("min", self, filter: filter)
104104
}
105105
}

0 commit comments

Comments
 (0)