Skip to content

Commit

Permalink
cockroachdb: fix table scattering in multi-register
Browse files Browse the repository at this point in the history
Fixes cockroachdb/cockroach#37470.
Fixes cockroachdb/cockroach#37471.
Fixes cockroachdb/cockroach#37472.
Fixes cockroachdb/cockroach#37473.
Fixes cockroachdb/cockroach#37474.
Fixes cockroachdb/cockroach#37475.

This was failing with the following error:
```
org.postgresql.util.PSQLException: A result was returned when none was expected.
```

Using `c/query` instead of `c/execute!` fixes this (this time I confirmed).
  • Loading branch information
nvanbenschoten authored and aliher1911 committed Dec 24, 2021
1 parent 1a4ccd6 commit b10f046
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cockroachdb/src/jepsen/cockroach/multiregister.clj
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
(doseq [t table-names]
(j/execute! c [(str "create table " t
" (ik int primary key, val int)")])
(j/execute! c [(str "alter table " t " scatter")])
(j/query c [(str "alter table " t " scatter")])
(info "Created table" t))))))

(invoke! [this test op]
Expand Down

0 comments on commit b10f046

Please sign in to comment.