2
0

Fix dbSavepoint.Begin recursive self call

It needed to call the inner tx.

fixes #633
This commit is contained in:
Jack Christensen
2019-10-22 20:38:12 -05:00
parent 3da4ea1a97
commit 78a83eba6a
2 changed files with 17 additions and 2 deletions
+1 -1
View File
@@ -261,7 +261,7 @@ func (sp *dbSavepoint) Begin(ctx context.Context) (Tx, error) {
return nil, ErrTxClosed
}
return sp.Begin(ctx)
return sp.tx.Begin(ctx)
}
// Commit releases the savepoint essentially committing the pseudo nested transaction.