diff --git a/transaction.go b/transaction.go index cde5fa8..cbfd9de 100755 --- a/transaction.go +++ b/transaction.go @@ -71,7 +71,7 @@ func TxPreInsert(tx *sql.Tx, dbname, table string, data map[string]interface{}) if strings.Contains(table, "select ") { dbName = table } else { - dbName = getTableName(dbName, table) + dbName = getTableName(dbname, table) } if len(data) < 1 {