Specify type for CockroachDB

pull/955/head
Jack Christensen 2021-02-13 14:04:56 -06:00
parent ef2adcee08
commit bac0905915
1 changed files with 2 additions and 2 deletions

View File

@ -176,12 +176,12 @@ func TestTxCommitSerializationFailure(t *testing.T) {
} }
defer tx2.Rollback(context.Background()) defer tx2.Rollback(context.Background())
_, err = tx1.Exec(context.Background(), `insert into tx_serializable_sums(num) select sum(num) from tx_serializable_sums`) _, err = tx1.Exec(context.Background(), `insert into tx_serializable_sums(num) select sum(num)::int from tx_serializable_sums`)
if err != nil { if err != nil {
t.Fatalf("Exec failed: %v", err) t.Fatalf("Exec failed: %v", err)
} }
_, err = tx2.Exec(context.Background(), `insert into tx_serializable_sums(num) select sum(num) from tx_serializable_sums`) _, err = tx2.Exec(context.Background(), `insert into tx_serializable_sums(num) select sum(num)::int from tx_serializable_sums`)
if err != nil { if err != nil {
t.Fatalf("Exec failed: %v", err) t.Fatalf("Exec failed: %v", err)
} }