Skip to content

Commit be7e48f

Browse files
committed
wip
1 parent 460b941 commit be7e48f

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

Sources/StructuredQueriesCore/Operators.swift

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -861,10 +861,8 @@ extension QueryExpression where QueryValue: QueryBindable {
861861
_ lowerBound: some QueryExpression<QueryValue>,
862862
and upperBound: some QueryExpression<QueryValue>
863863
) -> some QueryExpression<Bool> {
864-
BinaryOperator(
865-
lhs: self,
866-
operator: "BETWEEN",
867-
rhs: SQLQueryExpression("\(lowerBound) AND \(upperBound)")
864+
SQLQueryExpression(
865+
"\(self) BETWEEN \(lowerBound) AND \(upperBound)"
868866
)
869867
}
870868
}
@@ -963,7 +961,7 @@ struct BinaryOperator<QueryValue>: QueryExpression {
963961
}
964962

965963
var queryFragment: QueryFragment {
966-
"(\(lhs)) \(`operator`) (\(rhs))"
964+
"((\(lhs)) \(`operator`) (\(rhs)))"
967965
}
968966
}
969967

Sources/StructuredQueriesCore/Updates.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
public struct Updates<Base: Table> {
99
private var updates: [(String, QueryFragment)] = []
1010

11-
package init(_ body: (inout Self) -> Void) {
11+
init(_ body: (inout Self) -> Void) {
1212
body(&self)
1313
}
1414

0 commit comments

Comments
 (0)