This commit is contained in:
Lunny Xiao 2023-12-30 15:28:49 +08:00
parent 01aa1574f2
commit c3fb1bb5cb
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
1 changed files with 8 additions and 2 deletions

View File

@ -555,10 +555,16 @@ func (statement *Statement) writeSetColumns(colNames []string, args []any) func(
return err
}
}
if len(statement.joins) > 0 {
if _, err := fmt.Fprint(w, statement.tableName, ".", colName); err != nil {
return err
}
} else {
if _, err := fmt.Fprint(w, colName); err != nil {
return err
}
}
}
w.Append(args...)
return nil
}