Skip to content

Commit cf7897a

Browse files
go-mezkyleconroy
go-mez
authored andcommitted
Fix nil pointer reference
1 parent 3632515 commit cf7897a

File tree

2 files changed

+5
-1
lines changed
  • internal

2 files changed

+5
-1
lines changed

internal/cmd/shim.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ func pluginCodegen(s config.Codegen) *plugin.Codegen {
7575
}
7676

7777
func pluginGoCode(s config.SQLGo) *plugin.GoCode {
78+
if s.QueryParameterLimit == nil {
79+
s.QueryParameterLimit = new(int32)
80+
}
81+
7882
return &plugin.GoCode{
7983
EmitInterface: s.EmitInterface,
8084
EmitJsonTags: s.EmitJSONTags,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
error parsing sqlc.json: invalid query parameter limit
1+
error parsing sqlc.json: invalid query parameter limit

0 commit comments

Comments
 (0)