(t *testing.T)
| 833 | } |
| 834 | |
| 835 | func TestConnQueryContextSuccess(t *testing.T) { |
| 836 | testWithAllQueryExecModes(t, func(t *testing.T, db *sql.DB) { |
| 837 | rows, err := db.QueryContext(context.Background(), "select * from generate_series(1,10) n") |
| 838 | require.NoError(t, err) |
| 839 | |
| 840 | for rows.Next() { |
| 841 | var n int64 |
| 842 | err := rows.Scan(&n) |
| 843 | require.NoError(t, err) |
| 844 | } |
| 845 | require.NoError(t, rows.Err()) |
| 846 | }) |
| 847 | } |
| 848 | |
| 849 | func TestRowsColumnTypeDatabaseTypeName(t *testing.T) { |
| 850 | testWithAllQueryExecModes(t, func(t *testing.T, db *sql.DB) { |
nothing calls this directly
no test coverage detected