This commit is contained in:
aozhiwei 2024-07-01 11:27:02 +08:00
parent 94bdf86097
commit 5c45b36138

View File

@ -269,6 +269,8 @@ func (this *dbPool) Upsert(
if ds.Next() {
if len(updateKv) > 0 {
this.Update(dataSource, tblName, whereKv, updateKv, cb)
} else {
cb(nil, 0, 0)
}
} else {
this.Insert(dataSource, tblName, insertKv, cb)