From 4e313583ab8b725c8edc00cb5127db26d806134b Mon Sep 17 00:00:00 2001 From: Jack Christensen Date: Sat, 13 Feb 2021 13:26:15 -0600 Subject: [PATCH] Skip test with serial on CockroachDB --- batch_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/batch_test.go b/batch_test.go index 7a25ba52..e96dab29 100644 --- a/batch_test.go +++ b/batch_test.go @@ -18,6 +18,10 @@ func TestConnSendBatch(t *testing.T) { conn := mustConnectString(t, os.Getenv("PGX_TEST_DATABASE")) defer closeConn(t, conn) + if conn.PgConn().ParameterStatus("crdb_version") != "" { + t.Skip("Server serial type is incompatible with test") + } + sql := `create temporary table ledger( id serial primary key, description varchar not null,