workload: fix pgx error cast in kv95 and schemachange#69212
workload: fix pgx error cast in kv95 and schemachange#69212craig[bot] merged 1 commit intocockroachdb:masterfrom
Conversation
This was done incorrectly after the recent upgrade to pgx4. `pgconn.PgError` does not implement `error`, but `*pgconn.PgError` does. Release note: None
RichardJCai
left a comment
There was a problem hiding this comment.
LGTM
But wondering what the difference is between doing
new(pgconn.PgError) vs &pgconn.PgError{}
We do &pgconn.PgError{} here https://github.com/cockroachdb/cockroach/blob/master/pkg/sql/conn_executor_test.go#L792
Semantically they are equivalent. There's an ancient thread about it here: https://groups.google.com/g/golang-nuts/c/GDXFDJgKKSs. |
|
i just changed to |
|
nvm i didn't miss it -- that was one of the lines i changed. tftr! bors r=RichardJCai |
|
Build succeeded: |
fixes #69189
#69100 is failing but i'm not sure if this is the cause. (cc @ajwerner)
This was done incorrectly after the recent upgrade to pgx4.
pgconn.PgErrordoes not implementerror, but*pgconn.PgErrordoes.
Release justification: test only change
Release note: None