mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-28 04:24:20 +00:00
Cleanup handling of subquery sources
This commit is contained in:
1 parent
420a257650
commit
da4b96c2ca
5 files changed
+78
-62
No files matched your search
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user