From f72a147db3f0e10c9736828df1d771edc7d06e04 Mon Sep 17 00:00:00 2001 From: Daniel Castro Date: Tue, 4 Apr 2023 09:39:56 +0000 Subject: [PATCH] skip cockroachdb --- rows_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rows_test.go b/rows_test.go index 9a1e9e79..e816818f 100644 --- a/rows_test.go +++ b/rows_test.go @@ -751,6 +751,8 @@ func TestRowToStructByNameLaxRowValue(t *testing.T) { } defaultConnTestRunner.RunTest(context.Background(), t, func(ctx context.Context, t testing.TB, conn *pgx.Conn) { + pgxtest.SkipCockroachDB(t, conn, "") + rows, _ := conn.Query(ctx, ` WITH user_api_keys AS ( SELECT 1 AS user_id, 101 AS user_api_key_id, 'abc123' AS api_key @@ -763,6 +765,7 @@ func TestRowToStructByNameLaxRowValue(t *testing.T) { WHERE user_api_keys.api_key = 'abc123'; `) slice, err := pgx.CollectRows(rows, pgx.RowToStructByNameLax[UserAPIKey]) + assert.NoError(t, err) assert.ElementsMatch(t, slice, []UserAPIKey{{UserAPIKeyID: 101, UserID: 1, User: &User{UserID: 1, Name: "John Doe"}, AnotherTable: nil}}) })