Skip to content

Commit 9d851d7

Browse files
committed
Fix integration benchmarks
1 parent dacffdc commit 9d851d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pgtype/integration_benchmark_test.go.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func BenchmarkQuery<%= format_name %>FormatDecode_PG_<%= pg_type %>_to_Go_<%= go
2525
rows, _ := conn.Query(
2626
ctx,
2727
`select <% columns.times do |col_idx| %><% if col_idx != 0 %>, <% end %>n::<%= pg_type %> + <%= col_idx%><% end %> from generate_series(1, <%= rows %>) n`,
28-
[]any{pgx.QueryResultFormats{<%= format_code %>}},
28+
pgx.QueryResultFormats{<%= format_code %>},
2929
)
3030
_, err := pgx.ForEachRow(rows, []any{<% columns.times do |col_idx| %><% if col_idx != 0 %>, <% end %>&v[<%= col_idx%>]<% end %>}, func() error { return nil })
3131
if err != nil {
@@ -49,7 +49,7 @@ func BenchmarkQuery<%= format_name %>FormatDecode_PG_Int4Array_With_Go_Int4Array
4949
rows, _ := conn.Query(
5050
ctx,
5151
`select array_agg(n) from generate_series(1, <%= array_size %>) n`,
52-
[]any{pgx.QueryResultFormats{<%= format_code %>}},
52+
pgx.QueryResultFormats{<%= format_code %>},
5353
)
5454
_, err := pgx.ForEachRow(rows, []any{&v}, func() error { return nil })
5555
if err != nil {

0 commit comments

Comments
 (0)