mirror of https://github.com/jackc/pgx.git
Test composites on CockroachDB
parent
c1f4cbb5cd
commit
29751194ef
|
@ -11,8 +11,6 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestCompositeCodecTranscode(t *testing.T) {
|
func TestCompositeCodecTranscode(t *testing.T) {
|
||||||
skipCockroachDB(t, "Server does not support composite types (see https://github.com/cockroachdb/cockroach/issues/27792)")
|
|
||||||
|
|
||||||
defaultConnTestRunner.RunTest(context.Background(), t, func(ctx context.Context, t testing.TB, conn *pgx.Conn) {
|
defaultConnTestRunner.RunTest(context.Background(), t, func(ctx context.Context, t testing.TB, conn *pgx.Conn) {
|
||||||
|
|
||||||
_, err := conn.Exec(ctx, `drop type if exists ct_test;
|
_, err := conn.Exec(ctx, `drop type if exists ct_test;
|
||||||
|
@ -91,8 +89,6 @@ func (p *point3d) ScanIndex(i int) any {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestCompositeCodecTranscodeStruct(t *testing.T) {
|
func TestCompositeCodecTranscodeStruct(t *testing.T) {
|
||||||
skipCockroachDB(t, "Server does not support composite types (see https://github.com/cockroachdb/cockroach/issues/27792)")
|
|
||||||
|
|
||||||
defaultConnTestRunner.RunTest(context.Background(), t, func(ctx context.Context, t testing.TB, conn *pgx.Conn) {
|
defaultConnTestRunner.RunTest(context.Background(), t, func(ctx context.Context, t testing.TB, conn *pgx.Conn) {
|
||||||
|
|
||||||
_, err := conn.Exec(ctx, `drop type if exists point3d;
|
_, err := conn.Exec(ctx, `drop type if exists point3d;
|
||||||
|
@ -128,8 +124,6 @@ create type point3d as (
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestCompositeCodecTranscodeStructWrapper(t *testing.T) {
|
func TestCompositeCodecTranscodeStructWrapper(t *testing.T) {
|
||||||
skipCockroachDB(t, "Server does not support composite types (see https://github.com/cockroachdb/cockroach/issues/27792)")
|
|
||||||
|
|
||||||
defaultConnTestRunner.RunTest(context.Background(), t, func(ctx context.Context, t testing.TB, conn *pgx.Conn) {
|
defaultConnTestRunner.RunTest(context.Background(), t, func(ctx context.Context, t testing.TB, conn *pgx.Conn) {
|
||||||
|
|
||||||
_, err := conn.Exec(ctx, `drop type if exists point3d;
|
_, err := conn.Exec(ctx, `drop type if exists point3d;
|
||||||
|
@ -169,8 +163,6 @@ create type point3d as (
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestCompositeCodecDecodeValue(t *testing.T) {
|
func TestCompositeCodecDecodeValue(t *testing.T) {
|
||||||
skipCockroachDB(t, "Server does not support composite types (see https://github.com/cockroachdb/cockroach/issues/27792)")
|
|
||||||
|
|
||||||
defaultConnTestRunner.RunTest(context.Background(), t, func(ctx context.Context, t testing.TB, conn *pgx.Conn) {
|
defaultConnTestRunner.RunTest(context.Background(), t, func(ctx context.Context, t testing.TB, conn *pgx.Conn) {
|
||||||
|
|
||||||
_, err := conn.Exec(ctx, `drop type if exists point3d;
|
_, err := conn.Exec(ctx, `drop type if exists point3d;
|
||||||
|
@ -214,8 +206,6 @@ create type point3d as (
|
||||||
//
|
//
|
||||||
// https://github.com/jackc/pgx/issues/1576
|
// https://github.com/jackc/pgx/issues/1576
|
||||||
func TestCompositeCodecTranscodeStructWrapperForTable(t *testing.T) {
|
func TestCompositeCodecTranscodeStructWrapperForTable(t *testing.T) {
|
||||||
skipCockroachDB(t, "Server does not support composite types (see https://github.com/cockroachdb/cockroach/issues/27792)")
|
|
||||||
|
|
||||||
defaultConnTestRunner.RunTest(context.Background(), t, func(ctx context.Context, t testing.TB, conn *pgx.Conn) {
|
defaultConnTestRunner.RunTest(context.Background(), t, func(ctx context.Context, t testing.TB, conn *pgx.Conn) {
|
||||||
|
|
||||||
_, err := conn.Exec(ctx, `drop table if exists point3d;
|
_, err := conn.Exec(ctx, `drop table if exists point3d;
|
||||||
|
|
Loading…
Reference in New Issue