Browse Source

修改事务写入

master
guzeng 1 year ago
parent
commit
89c478b953
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      transaction.go

+ 1
- 1
transaction.go View File

@ -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("参数错误,没有要写入的数据")


Loading…
Cancel
Save