             fatalError("Can't update without any database table")
         }
         
-        if setters.isEmpty {
+        if assignments.isEmpty {
             return nil
         }
         

        return statement
    }
    
    /// Returns nil if setters is empty
    func makeUpdateStatement(_ db: Database, _ setters: [ColumnAssignment]) throws -> UpdateStatement? {
        if let groupExpressions = try groupPromise?.resolve(db), !groupExpressions.isEmpty {
            // Programmer error
            fatalError("Can't update query with GROUP BY clause")

        
        var sql = try "UPDATE " + relation.source.sql(db, &context)
        
        let assignmentsSQL = assignments
            .map({ assignment in
                assignment.column.expressionSQL(&context, wrappedInParenthesis: false) +
                    " = " +
                    assignment.value.sqlExpression.expressionSQL(&context, wrappedInParenthesis: false)
            })
            .joined(separator: ", ")
        sql += " SET " + assignmentsSQL
        
        let filters = try relation.filtersPromise.resolve(db)
        if filters.isEmpty == false {
