2
0

Skip json format test on CockroachDB

This commit is contained in:
Jack Christensen
2023-07-11 20:51:22 -05:00
parent 524f661136
commit e0c70201dc
+2
View File
@@ -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)