Skip to content

Commit

Permalink
don't allocate the params map for one-off (non-compiled) queries
Browse files Browse the repository at this point in the history
  • Loading branch information
bokwoon95 committed Sep 21, 2023
1 parent f251382 commit 88d4879
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fetch_exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ func fetchCursor[T any](ctx context.Context, db DB, query Query, rowmapper func(
queryStats: QueryStats{
Dialect: dialect,
RowCount: sql.NullInt64{Valid: true},
Params: make(map[string][]int),
},
}

Expand Down Expand Up @@ -1117,7 +1116,6 @@ func fetchExists(ctx context.Context, db DB, query Query, skip int) (exists bool
queryStats := QueryStats{
Dialect: dialect,
Exists: sql.NullBool{Valid: true},
Params: make(map[string][]int),
}

// Build query.
Expand Down

0 comments on commit 88d4879

Please sign in to comment.