2
0

Fix Tx.status not being set on error on Commit

fixes #131
This commit is contained in:
Jack Christensen
2016-03-24 15:11:04 -05:00
parent 7947ab561f
commit b8486d6749
3 changed files with 48 additions and 0 deletions
+1
View File
@@ -86,6 +86,7 @@ func (tx *Tx) Commit() error {
tx.status = TxStatusCommitFailure
tx.err = ErrTxCommitRollback
} else {
tx.status = TxStatusCommitFailure
tx.err = err
}