From 89c478b953bea48d42ca672d925bed30f9a24a11 Mon Sep 17 00:00:00 2001 From: guzeng Date: Fri, 21 Oct 2022 09:42:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=8B=E5=8A=A1=E5=86=99?= =?UTF-8?q?=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- transaction.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transaction.go b/transaction.go index 00d2e0a..cde5fa8 100755 --- a/transaction.go +++ b/transaction.go @@ -122,7 +122,7 @@ func TxUpdate(tx *sql.Tx, dbname, table string, data map[string]string, where ma if strings.Contains(table, "select ") { dbName = table } else { - dbName = getTableName(dbName, table) + dbName = getTableName(dbname, table) } if len(data) < 1 { return rowsAffected, errors.New("参数错误,没有要写入的数据")