Cleanup DatabaseRegion: no more public intersection, no more public way to specify rowids

This commit is contained in:
Gwendal Roué committed 2018-01-16 13:58:55 +01:00
1 parent 581c1c46e2
commit 938977bbca
5 files changed
+127 -134

No files matched your search

@@ -212,8 +212,9 @@ extension QueryInterfaceSelectQueryDefinition : Request {
return region
}
// Intersect
return try region.intersection(db.region(rowIds: rowIds, in: tableName))
// Database regions are case-insensitive: use the canonical table name
let canonicalTableName = try db.canonicalName(table: tableName)
return region.tableIntersection(canonicalTableName, rowIds: rowIds)
}
private var countQuery: QueryInterfaceSelectQueryDefinition {