mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-25 04:07:47 +00:00
Fix failing test for batch update policy
This commit is contained in:
1 parent
1e80aecfbd
commit
58263e9b60
2 files changed
+19
-3
No files matched your search
@@ -507,7 +507,12 @@ extension QueryInterfaceRequest where T: MutablePersistableRecord {
|
||||
/// - throws: A DatabaseError is thrown whenever an SQLite error occurs.
|
||||
@discardableResult
|
||||
public func updateAll(_ db: Database, _ assignments: [ColumnAssignment]) throws -> Int {
|
||||
guard let updateStatement = try SQLQueryGenerator(query).makeUpdateStatement(db, assignments) else {
|
||||
let conflictResolution = RowDecoder.persistenceConflictPolicy.conflictResolutionForUpdate
|
||||
guard let updateStatement = try SQLQueryGenerator(query).makeUpdateStatement(
|
||||
db,
|
||||
conflictResolution: conflictResolution,
|
||||
assignments: assignments) else
|
||||
{
|
||||
// database not hit
|
||||
return 0
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user