From a8aaa3736302262e5564e6814bb2bcb5a4fc5c99 Mon Sep 17 00:00:00 2001 From: nickcruess-soda Date: Fri, 12 Jul 2024 09:56:59 -0500 Subject: [PATCH] fix(test): skip CockroachDB since it doesn't support XML --- pgtype/xml_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pgtype/xml_test.go b/pgtype/xml_test.go index 8bcbdd27..0f755e96 100644 --- a/pgtype/xml_test.go +++ b/pgtype/xml_test.go @@ -19,6 +19,7 @@ type xmlStruct struct { } func TestXMLCodec(t *testing.T) { + skipCockroachDB(t, "CockroachDB does not support XML.") pgxtest.RunValueRoundTripTests(context.Background(), t, defaultConnTestRunner, nil, "xml", []pgxtest.ValueRoundTripTest{ {nil, new(*xmlStruct), isExpectedEq((*xmlStruct)(nil))}, {map[string]any(nil), new(*string), isExpectedEq((*string)(nil))}, @@ -48,6 +49,7 @@ func TestXMLCodec(t *testing.T) { // https://github.com/jackc/pgx/issues/1273#issuecomment-1221414648 func TestXMLCodecUnmarshalSQLNull(t *testing.T) { + skipCockroachDB(t, "CockroachDB does not support XML.") defaultConnTestRunner.RunTest(context.Background(), t, func(ctx context.Context, t testing.TB, conn *pgx.Conn) { // Byte arrays are nilified slice := []byte{10, 4} @@ -82,6 +84,7 @@ func TestXMLCodecUnmarshalSQLNull(t *testing.T) { } func TestXMLCodecPointerToPointerToString(t *testing.T) { + skipCockroachDB(t, "CockroachDB does not support XML.") defaultConnTestRunner.RunTest(context.Background(), t, func(ctx context.Context, t testing.TB, conn *pgx.Conn) { var s *string err := conn.QueryRow(ctx, "select ''::xml").Scan(&s)