Skip to content

Commit

Permalink
Skip json format test on CockroachDB
Browse files Browse the repository at this point in the history
  • Loading branch information
jackc committed Jul 12, 2023
1 parent 524f661 commit e0c7020
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pgtype/json_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e0c7020

Please sign in to comment.