Cleanup SQLLiteral elements

This commit is contained in:
Gwendal Roué committed 2020-01-25 16:11:17 +01:00
1 parent e4c6029e72
commit 3ccfcb61ce
3 files changed
+8 -13

No files matched your search

@@ -147,9 +147,7 @@ extension SQLInterpolation {
/// SELECT * FROM player WHERE score = \(subQuery)
/// """
public mutating func appendInterpolation<T>(_ request: SQLRequest<T>) {
appendLiteral("(")
elements.append(.literal(request.sqlLiteral, qualifierLocked: true))
appendLiteral(")")
elements.append(.subQuery(request.sqlLiteral))
}
}
#endif