Skip to content

Commit

Permalink
make linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
qw4990 committed Apr 20, 2023
1 parent ee4fb29 commit 24cc09c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions planner/core/plan_cache_param_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,11 @@ func TestParameterize(t *testing.T) {

func TestGetParamSQLFromASTConcurrently(t *testing.T) {
n := 100
var sqls []string
sqls := make([]string, 0, n)
for i := 0; i < n; i++ {
sqls = append(sqls, fmt.Sprintf(`insert into t values (%d, %d, %d)`, i*3+0, i*3+1, i*3+2))
}
var stmts []ast.StmtNode
stmts := make([]ast.StmtNode, 0, n)
for _, sql := range sqls {
stmt, err := parser.New().ParseOneStmt(sql, "", "")
require.Nil(t, err)
Expand Down

0 comments on commit 24cc09c

Please sign in to comment.