1
This commit is contained in:
parent
effa2d3257
commit
bf1664b48b
@ -206,7 +206,9 @@ func (this *dbPool) Upsert(
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
if ds.Next() {
|
if ds.Next() {
|
||||||
this.Update(dataSource, tblName, whereKv, updateKv, cb)
|
if len(updateKv) > 0 {
|
||||||
|
this.Update(dataSource, tblName, whereKv, updateKv, cb)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
this.Insert(dataSource, tblName, insertKv, cb)
|
this.Insert(dataSource, tblName, insertKv, cb)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user