Skip to content

Commit b5efc90

Browse files
authored
Merge pull request #2028 from jackc/enable-composite-tests-on-cockroachdb
Enable composite tests on cockroachdb
2 parents 2d21a2b + a26c935 commit b5efc90

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

ci/setup_test.bash

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ fi
4242

4343
if [[ "${PGVERSION-}" =~ ^cockroach ]]
4444
then
45-
wget -qO- https://binaries.cockroachdb.com/cockroach-v23.1.3.linux-amd64.tgz | tar xvz
46-
sudo mv cockroach-v23.1.3.linux-amd64/cockroach /usr/local/bin/
45+
wget -qO- https://binaries.cockroachdb.com/cockroach-v24.3.3.linux-amd64.tgz | tar xvz
46+
sudo mv cockroach-v24.3.3.linux-amd64/cockroach /usr/local/bin/
4747
cockroach start-single-node --insecure --background --listen-addr=localhost
4848
cockroach sql --insecure -e 'create database pgx_test'
4949
fi

pgtype/composite_test.go

+1-9
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,7 +206,7 @@ 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)")
209+
skipCockroachDB(t, "Server does not support composite types from table definitions")
218210

219211
defaultConnTestRunner.RunTest(context.Background(), t, func(ctx context.Context, t testing.TB, conn *pgx.Conn) {
220212

0 commit comments

Comments
 (0)