Cleanup handling of subquery sources

This commit is contained in:
Gwendal Roué committed 2020-05-01 15:42:01 +02:00
1 parent 420a257650
commit da4b96c2ca
5 files changed
+78 -62

No files matched your search

+1 -1
View File
@@ -151,7 +151,7 @@ extension SQLQuery {
// SELECT COUNT(*) FROM (self)
private var trivialCountQuery: SQLQuery {
let relation = SQLRelation(
source: .query(unordered()),
source: .subquery(unordered()),
selectionPromise: DatabasePromise(value: [SQLExpressionCount(AllColumns())]))
return SQLQuery(relation: relation)
}