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 a3fcad9 commit edded4dCopy full SHA for edded4d
driver_test.go
@@ -1211,11 +1211,11 @@ func TestStmtMultiRows(t *testing.T) {
1211
}
1212
1213
func TestPreparedManyCols(t *testing.T) {
1214
- const repetitions = 32 // defaultBufSize
+ const numParams = defaultBufSize
1215
runTests(t, dsn, func(dbt *DBTest) {
1216
- query := "SELECT ?" + strings.Repeat(",?", repetitions-1)
1217
- values := make([]sql.NullString, repetitions)
1218
- params := make([]interface{}, repetitions)
+ query := "SELECT ?" + strings.Repeat(",?", numParams-1)
+ values := make([]sql.NullString, numParams)
+ params := make([]interface{}, numParams)
1219
for i := range values {
1220
params[i] = &values[i]
1221
0 commit comments