good morning!!!!

Skip to content
Snippets Groups Projects
Commit 6f9a2619 authored by José Carlos Nieto's avatar José Carlos Nieto
Browse files

Remove tx property.

parent 6e8b5ec8
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,6 @@ type database struct {
db.SQLBuilder
txMu sync.Mutex
tx sqladapter.DatabaseTx
connURL db.ConnectionURL
}
......@@ -89,9 +88,8 @@ func NewTx(sqlTx *sql.Tx) (db.SQLTx, error) {
return nil, err
}
d.tx = sqladapter.NewTx(d)
return &tx{DatabaseTx: d.tx}, nil
newTx := sqladapter.NewTx(d)
return &tx{DatabaseTx: newTx}, nil
}
// New wraps the given *sql.DB session and creates a new db session.
......@@ -258,8 +256,6 @@ func (d *database) NewLocalTransaction() (sqladapter.DatabaseTx, error) {
return nil, err
}
clone.tx = sqladapter.NewTx(clone)
return sqladapter.NewTx(clone), nil
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment