mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-30 04:28:44 +00:00
Fix for Xcode 11.4
This commit is contained in:
1 parent
e907bc2686
commit
9456fe809d
1 file changed
+4
-4
@@ -176,10 +176,10 @@ where RowDecoder: Identifiable,
|
||||
/// let request = try Player.filter(...).selectID()
|
||||
public func selectID() -> QueryInterfaceRequest<RowDecoder.ID> {
|
||||
select { db in
|
||||
let primaryKey = try db.primaryKey(databaseTableName)
|
||||
let primaryKey = try db.primaryKey(self.databaseTableName)
|
||||
GRDBPrecondition(
|
||||
primaryKey.columns.count == 1,
|
||||
"selectID requires a single-column primary key in the table \(databaseTableName)")
|
||||
"selectID requires a single-column primary key in the table \(self.databaseTableName)")
|
||||
return [Column(primaryKey.columns[0])]
|
||||
}.asRequest(of: RowDecoder.ID.self)
|
||||
}
|
||||
@@ -197,10 +197,10 @@ where RowDecoder: Identifiable,
|
||||
/// let request = try Player.filter(...).selectID()
|
||||
public func selectID() -> QueryInterfaceRequest<RowDecoder.ID.Wrapped> {
|
||||
select { db in
|
||||
let primaryKey = try db.primaryKey(databaseTableName)
|
||||
let primaryKey = try db.primaryKey(self.databaseTableName)
|
||||
GRDBPrecondition(
|
||||
primaryKey.columns.count == 1,
|
||||
"selectID requires a single-column primary key in the table \(databaseTableName)")
|
||||
"selectID requires a single-column primary key in the table \(self.databaseTableName)")
|
||||
return [Column(primaryKey.columns[0])]
|
||||
}.asRequest(of: RowDecoder.ID.Wrapped.self)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user