Skip to content

Commit edded4d

Browse files
committed
increase number of arguments in test (forgot to raise this again)
1 parent a3fcad9 commit edded4d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

driver_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1211,11 +1211,11 @@ func TestStmtMultiRows(t *testing.T) {
12111211
}
12121212

12131213
func TestPreparedManyCols(t *testing.T) {
1214-
const repetitions = 32 // defaultBufSize
1214+
const numParams = defaultBufSize
12151215
runTests(t, dsn, func(dbt *DBTest) {
1216-
query := "SELECT ?" + strings.Repeat(",?", repetitions-1)
1217-
values := make([]sql.NullString, repetitions)
1218-
params := make([]interface{}, repetitions)
1216+
query := "SELECT ?" + strings.Repeat(",?", numParams-1)
1217+
values := make([]sql.NullString, numParams)
1218+
params := make([]interface{}, numParams)
12191219
for i := range values {
12201220
params[i] = &values[i]
12211221
}

0 commit comments

Comments
 (0)