diff --git a/dbpool.go b/dbpool.go index 3e30e4b..b9931b3 100644 --- a/dbpool.go +++ b/dbpool.go @@ -299,7 +299,9 @@ func (this *dbPool) UpsertEx( } } } else { - this.Insert(dataSource, tblName, insertKv, cb) + if len(insertKv) > 0 { + this.Insert(dataSource, tblName, insertKv, cb) + } } }) }