From e0c70201dc74eeb61f385e6b61625f67bd066d15 Mon Sep 17 00:00:00 2001 From: Jack Christensen Date: Tue, 11 Jul 2023 20:51:22 -0500 Subject: [PATCH] Skip json format test on CockroachDB --- pgtype/json_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pgtype/json_test.go b/pgtype/json_test.go index a1f24478..e171104f 100644 --- a/pgtype/json_test.go +++ b/pgtype/json_test.go @@ -150,6 +150,8 @@ func (t ChildIssue1681) MarshalJSON() ([]byte, error) { // https://github.com/jackc/pgx/issues/1681 func TestJSONCodecEncodeJSONMarshalerThatCanBeWrapped(t *testing.T) { + skipCockroachDB(t, "CockroachDB treats json as jsonb. This causes it to format differently than PostgreSQL.") + defaultConnTestRunner.RunTest(context.Background(), t, func(ctx context.Context, t testing.TB, conn *pgx.Conn) { var jsonStr string err := conn.QueryRow(context.Background(), "select $1::json", &ParentIssue1681{}).Scan(&jsonStr)