2
0

Only have a single Begin transaction method

This commit is contained in:
Jack Christensen
2019-04-24 13:35:27 -05:00
parent 1b8f0016e9
commit 2263521f70
9 changed files with 35 additions and 42 deletions
+2 -2
View File
@@ -349,7 +349,7 @@ func benchmarkWriteNRowsViaInsert(b *testing.B, n int) {
for i := 0; i < b.N; i++ {
src := newBenchmarkWriteTableCopyFromSrc(n)
tx, err := conn.Begin()
tx, err := conn.Begin(context.Background(), nil)
if err != nil {
b.Fatal(err)
}
@@ -388,7 +388,7 @@ func multiInsert(conn *pgx.Conn, tableName string, columnNames []string, rowSrc
}
resetQuery()
tx, err := conn.Begin()
tx, err := conn.Begin(context.Background(), nil)
if err != nil {
return 0, err
}