Skip to content

Commit 2975119

Browse files
committed
Test composites on CockroachDB
1 parent c1f4cbb commit 2975119

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

pgtype/composite_test.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ import (
1111
)
1212

1313
func TestCompositeCodecTranscode(t *testing.T) {
14-
skipCockroachDB(t, "Server does not support composite types (see https://github.com/cockroachdb/cockroach/issues/27792)")
15-
1614
defaultConnTestRunner.RunTest(context.Background(), t, func(ctx context.Context, t testing.TB, conn *pgx.Conn) {
1715

1816
_, err := conn.Exec(ctx, `drop type if exists ct_test;
@@ -91,8 +89,6 @@ func (p *point3d) ScanIndex(i int) any {
9189
}
9290

9391
func TestCompositeCodecTranscodeStruct(t *testing.T) {
94-
skipCockroachDB(t, "Server does not support composite types (see https://github.com/cockroachdb/cockroach/issues/27792)")
95-
9692
defaultConnTestRunner.RunTest(context.Background(), t, func(ctx context.Context, t testing.TB, conn *pgx.Conn) {
9793

9894
_, err := conn.Exec(ctx, `drop type if exists point3d;
@@ -128,8 +124,6 @@ create type point3d as (
128124
}
129125

130126
func TestCompositeCodecTranscodeStructWrapper(t *testing.T) {
131-
skipCockroachDB(t, "Server does not support composite types (see https://github.com/cockroachdb/cockroach/issues/27792)")
132-
133127
defaultConnTestRunner.RunTest(context.Background(), t, func(ctx context.Context, t testing.TB, conn *pgx.Conn) {
134128

135129
_, err := conn.Exec(ctx, `drop type if exists point3d;
@@ -169,8 +163,6 @@ create type point3d as (
169163
}
170164

171165
func TestCompositeCodecDecodeValue(t *testing.T) {
172-
skipCockroachDB(t, "Server does not support composite types (see https://github.com/cockroachdb/cockroach/issues/27792)")
173-
174166
defaultConnTestRunner.RunTest(context.Background(), t, func(ctx context.Context, t testing.TB, conn *pgx.Conn) {
175167

176168
_, err := conn.Exec(ctx, `drop type if exists point3d;
@@ -214,8 +206,6 @@ create type point3d as (
214206
//
215207
// https://github.com/jackc/pgx/issues/1576
216208
func TestCompositeCodecTranscodeStructWrapperForTable(t *testing.T) {
217-
skipCockroachDB(t, "Server does not support composite types (see https://github.com/cockroachdb/cockroach/issues/27792)")
218-
219209
defaultConnTestRunner.RunTest(context.Background(), t, func(ctx context.Context, t testing.TB, conn *pgx.Conn) {
220210

221211
_, err := conn.Exec(ctx, `drop table if exists point3d;

0 commit comments

Comments
 (0)