You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defaultConnTestRunner.RunTest(context.Background(), t, func(ctx context.Context, t testing.TB, conn*pgx.Conn) {
680
+
rows, _:=conn.Query(ctx, `select 'John' as first_name, 'Smith' as last_name, n as age, 'd5e49d3f' as account_id, '5e49d321' as account__id from generate_series(0, 9) n`)
assert.ErrorContains(t, err, "cannot find field first_name in returned row")
697
+
698
+
// check missing field in a destination struct
699
+
rows, _=conn.Query(ctx, `select 'John' as first_name, 'Smith' as last_name, n as age, 'd5e49d3f' as account_id, '5e49d321' as account__id, null as ignore from generate_series(0, 9) n`)
0 commit comments