diff --git a/GRDB/QueryInterface/Request/QueryInterfaceRequest.swift b/GRDB/QueryInterface/Request/QueryInterfaceRequest.swift index c7ee108dd..1db6cd367 100644 --- a/GRDB/QueryInterface/Request/QueryInterfaceRequest.swift +++ b/GRDB/QueryInterface/Request/QueryInterfaceRequest.swift @@ -528,7 +528,12 @@ extension QueryInterfaceRequest where T: MutablePersistableRecord { /// - returns: The number of updated rows /// - throws: A DatabaseError is thrown whenever an SQLite error occurs. @discardableResult - public func updateAll(_ db: Database, _ assignment: ColumnAssignment, _ otherAssignments: ColumnAssignment...) throws -> Int { + public func updateAll( + _ db: Database, + _ assignment: ColumnAssignment, + _ otherAssignments: ColumnAssignment...) + throws -> Int + { return try updateAll(db, [assignment] + otherAssignments) } } diff --git a/GRDB/Record/PersistableRecord.swift b/GRDB/Record/PersistableRecord.swift index af41e4d26..87b07372a 100644 --- a/GRDB/Record/PersistableRecord.swift +++ b/GRDB/Record/PersistableRecord.swift @@ -550,7 +550,12 @@ extension MutablePersistableRecord { /// - returns: The number of updated rows /// - throws: A DatabaseError is thrown whenever an SQLite error occurs. @discardableResult - public static func updateAll(_ db: Database, _ assignment: ColumnAssignment, _ otherAssignments: ColumnAssignment...) throws -> Int { + public static func updateAll( + _ db: Database, + _ assignment: ColumnAssignment, + _ otherAssignments: ColumnAssignment...) + throws -> Int + { return try updateAll(db, [assignment] + otherAssignments) } }