From fb83fb0cc3b9a07fa964b5446ea15a490dd84f12 Mon Sep 17 00:00:00 2001 From: Jack Christensen Date: Sat, 1 Oct 2022 10:04:15 -0500 Subject: [PATCH] Skip TestCopyFrom on CockroachDB --- pgconn/pgconn_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pgconn/pgconn_test.go b/pgconn/pgconn_test.go index 63406245..55fd6012 100644 --- a/pgconn/pgconn_test.go +++ b/pgconn/pgconn_test.go @@ -2837,6 +2837,10 @@ func TestCopyFrom(t *testing.T) { pgConn, err := pgconn.ConnectConfig(context.Background(), config) require.NoError(t, err) + if pgConn.ParameterStatus("crdb_version") != "" { + t.Skip("Server does support COPY FROM") + } + setupSQL := `create temporary table t ( id text primary key, n int not null