We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccdef72 commit 1ef9cdeCopy full SHA for 1ef9cde
benchmark_test.go
@@ -484,8 +484,8 @@ func BenchmarkReceiveMetadata(b *testing.B) {
484
db.SetMaxIdleConns(1)
485
486
// Create a slice to scan all columns
487
- values := make([]interface{}, 1000)
488
- valuePtrs := make([]interface{}, 1000)
+ values := make([]any, 1000)
+ valuePtrs := make([]any, 1000)
489
for j := range values {
490
valuePtrs[j] = &values[j]
491
}
@@ -498,7 +498,7 @@ func BenchmarkReceiveMetadata(b *testing.B) {
498
defer stmt.Close()
499
500
// Benchmark metadata retrieval
501
- for i := 0; i < b.N; i++ {
+ for range b.N {
502
rows := tb.checkRows(stmt.Query())
503
504
rows.Next()
0 commit comments