From fe3a710a5a4de4936fe0ee18fbe70781b01500e3 Mon Sep 17 00:00:00 2001 From: Jack Christensen Date: Sat, 13 Feb 2021 13:55:07 -0600 Subject: [PATCH] Skip test depending on exact int types on CockroachDB --- values_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/values_test.go b/values_test.go index 00122c01..9e8669fa 100644 --- a/values_test.go +++ b/values_test.go @@ -742,6 +742,10 @@ func TestPointerPointer(t *testing.T) { t.Parallel() testWithAndWithoutPreferSimpleProtocol(t, func(t *testing.T, conn *pgx.Conn) { + if conn.PgConn().ParameterStatus("crdb_version") != "" { + t.Skip("Server auto converts ints to bigint and test relies on exact types") + } + type allTypes struct { s *string i16 *int16