mirror of
https://github.com/go-gitea/gitea
synced 2025-07-21 01:38:37 +00:00
Retry create issue to cope with duplicate keys (#7898)
* Retry create issue to cope with duplicate keys * Use .SetExpr().Where().Insert()
This commit is contained in:
committed by
techknowlogick
parent
541fab196f
commit
5fe2ec264f
2
vendor/xorm.io/core/rows.go
generated
vendored
2
vendor/xorm.io/core/rows.go
generated
vendored
@@ -170,7 +170,7 @@ func (rs *Rows) ScanMap(dest interface{}) error {
|
||||
newDest := make([]interface{}, len(cols))
|
||||
vvv := vv.Elem()
|
||||
|
||||
for i, _ := range cols {
|
||||
for i := range cols {
|
||||
newDest[i] = rs.db.reflectNew(vvv.Type().Elem()).Interface()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user