good morning!!!!

Skip to content
Snippets Groups Projects
Commit 9539eb31 authored by José Carlos's avatar José Carlos Committed by GitHub
Browse files

Merge pull request #238 from ArturoVM/v2

fix upper/db#237
parents 0905e0f1 96892a8e
Branches
Tags
No related merge requests found
......@@ -33,3 +33,17 @@ type tx struct {
var (
_ = db.Tx(&tx{})
)
func (t *tx) Commit() error {
if sess := t.Session(); sess != nil {
defer sess.Close()
}
return t.DatabaseTx.Commit()
}
func (t *tx) Rollback() error {
if sess := t.Session(); sess != nil {
defer sess.Close()
}
return t.DatabaseTx.Rollback()
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment