Browse Source

修改事务写入

master v0.10.2
guzeng 2 years ago
parent
commit
0fe53a0d4f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      transaction.go

+ 1
- 1
transaction.go View File

@ -71,7 +71,7 @@ func TxPreInsert(tx *sql.Tx, dbname, table string, data map[string]interface{})
if strings.Contains(table, "select ") { if strings.Contains(table, "select ") {
dbName = table dbName = table
} else { } else {
dbName = getTableName(dbName, table)
dbName = getTableName(dbname, table)
} }
if len(data) < 1 { if len(data) < 1 {


Loading…
Cancel
Save