mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-28 04:24:20 +00:00
Fix failling test for rowid optimization in Database.recordingSelectedRegion
This commit is contained in:
1 parent
9c864bc768
commit
0f2c5cd8a0
6 files changed
+65
-43
No files matched your search
@@ -86,7 +86,7 @@ extension QueryInterfaceRequest: FetchRequest {
|
||||
/// - parameter db: A database connection.
|
||||
/// :nodoc:
|
||||
public func databaseRegion(_ db: Database) throws -> DatabaseRegion {
|
||||
var region = try SQLQueryGenerator(query).databaseRegion(db)
|
||||
var region = try SQLQueryGenerator(query).makeSelectStatement(db).databaseRegion
|
||||
|
||||
// Iterate all prefetched associations
|
||||
var fifo = query.relation.prefetchedAssociations
|
||||
@@ -105,7 +105,7 @@ extension QueryInterfaceRequest: FetchRequest {
|
||||
let prefetchedQuery = SQLQuery(relation: prefetchedRelation)
|
||||
|
||||
// Union region
|
||||
try region.formUnion(SQLQueryGenerator(prefetchedQuery).databaseRegion(db))
|
||||
try region.formUnion(SQLQueryGenerator(prefetchedQuery).makeSelectStatement(db).databaseRegion)
|
||||
|
||||
// Append nested prefetched associations (support for
|
||||
// A.including(all: A.bs.including(all: B.cs))
|
||||
|
||||
Reference in new issue
Block a user