2
0

Commit and Rollback take context

Remove Ex versions.
This commit is contained in:
Jack Christensen
2019-04-10 12:22:12 -05:00
parent 7718ee6207
commit 54c6ddc2f0
9 changed files with 32 additions and 45 deletions
+2 -2
View File
@@ -535,7 +535,7 @@ func TestTxBeginBatch(t *testing.T) {
}
batch.Close()
tx.Commit()
tx.Commit(context.Background())
var count int
conn.QueryRow(context.Background(), "select count(1) from ledger1 where id = $1", id).Scan(&count)
@@ -581,7 +581,7 @@ func TestTxBeginBatchRollback(t *testing.T) {
t.Error(err)
}
batch.Close()
tx.Rollback()
tx.Rollback(context.Background())
row := conn.QueryRow(context.Background(), "select count(1) from ledger1 where id = $1", id)
var count int