This commit is contained in:
Gwendal Roué committed 2017-07-21 12:15:35 +02:00
1 parent 2b2e92c810
commit ed525bd1d8
1 file changed
+2 -2
+2 -2
View File
@@ -65,8 +65,8 @@ extension TableMapping {
}
}
// If there is no unique index on the columns, the method raises a fatal
// (unless fatalErrorOnMissingUniqueIndex is false, for testability).
// Raises a fatal error if there is no unique index on the columns (unless
// fatalErrorOnMissingUniqueIndex is false, for testability).
static func filter(_ db: Database, keys: [[String: DatabaseValueConvertible?]], fatalErrorOnMissingUniqueIndex: Bool = true) throws -> QueryInterfaceRequest<Self> {
// SELECT * FROM table WHERE ((a=? AND b=?) OR (c=? AND d=?) OR ...)
let keyPredicates: [SQLExpression] = try keys.map { key in