From 5c45b36138650071bfbd79b4694d1e5c902f9c37 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 1 Jul 2024 11:27:02 +0800 Subject: [PATCH] 1 --- dbpool.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dbpool.go b/dbpool.go index 989ec38..3e30e4b 100644 --- a/dbpool.go +++ b/dbpool.go @@ -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)