mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-28 04:24:20 +00:00
Cleanup SQLLiteral elements
This commit is contained in:
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
|
||||
Reference in new issue
Block a user