Skip to content

Commit 95289ea

Browse files
committed
params and return type should be CamelCased
1 parent eeed5d4 commit 95289ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/gen.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ func buildQueries(conf Config, req *plugin.GenerateRequest, structs []Struct) ([
406406
gq.Args = []QueryValue{{
407407
Emit: true,
408408
Name: "arg",
409-
Struct: columnsToStruct(req, query.Name+"Params", cols),
409+
Struct: columnsToStruct(req, modelName(query.Name+"Params", req.Settings), cols),
410410
}}
411411
} else {
412412
args := make([]QueryValue, 0, len(query.Params))
@@ -461,7 +461,7 @@ func buildQueries(conf Config, req *plugin.GenerateRequest, structs []Struct) ([
461461
Column: c,
462462
})
463463
}
464-
gs = columnsToStruct(req, query.Name+"Row", columns)
464+
gs = columnsToStruct(req, modelName(query.Name+"Row", req.Settings), columns)
465465
emit = true
466466
}
467467
gq.Ret = QueryValue{

0 commit comments

Comments
 (0)