mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-30 04:28:44 +00:00
BREAKING: Bump minimum SQLite version to 3.19.3
This commit is contained in:
1 parent
49a66e197b
commit
36892fee55
16 files changed
+23
-124
No files matched your search
@@ -639,15 +639,7 @@ private func prefetch(
|
||||
// WITH grdb_base AS (SELECT a, b FROM parent)
|
||||
// SELECT * FROM child
|
||||
// WHERE (a, b) IN grdb_base
|
||||
//
|
||||
// This technique works well, but there is one precondition: row
|
||||
// values must be available (https://www.sqlite.org/rowvalue.html).
|
||||
// This is the case of almost all our target platforms.
|
||||
//
|
||||
// Otherwise, we fallback to the `(a = ? AND b = ?) OR ...`
|
||||
// condition (the one that may fail if there are too many
|
||||
// base rows).
|
||||
let usesCommonTableExpression = pivotMapping.count > 1 && SQLExpression.rowValuesAreAvailable
|
||||
let usesCommonTableExpression = pivotMapping.count > 1
|
||||
|
||||
let prefetchRequest: QueryInterfaceRequest<Row>
|
||||
if usesCommonTableExpression {
|
||||
|
||||
Reference in new issue
Block a user