From 7ebe70aba4a34b3025a7877572328aded27bb76e Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 12 Apr 2024 16:12:33 +0800 Subject: [PATCH] 1 --- dbpool.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dbpool.go b/dbpool.go index 3c5718c..10462d7 100644 --- a/dbpool.go +++ b/dbpool.go @@ -184,8 +184,8 @@ func (this *dbPool) OrmSelectOne( func (this *dbPool) Update( dataSource string, tblName string, - fieldsKv [][]string, whereKv [][]string, + fieldsKv [][]string, cb ExecResultCb) { params := []string{} sql := "UPDATE `" + tblName + "` SET " + this.joinUpdateFields(fieldsKv, ¶ms) + @@ -228,7 +228,7 @@ func (this *dbPool) Upsert( return } if ds.Next() { - this.Update(dataSource, tblName, updateKv, whereKv, cb) + this.Update(dataSource, tblName, whereKv, updateKv, cb) } else { this.Insert(dataSource, tblName, insertKv, cb) }