Skip to content

Commit ba09fa0

Browse files
author
Daniel Atwood
authored
Fixed :execresult generation (#597)
1 parent ba4c9bf commit ba09fa0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/codegen/golang/gen.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ func (q *Queries) {{.MethodName}}(ctx context.Context, {{.Arg.Pair}}) (int64, er
339339
{{end -}}
340340
func (q *Queries) {{.MethodName}}(ctx context.Context, {{.Arg.Pair}}) (sql.Result, error) {
341341
{{- if $.EmitPreparedQueries}}
342-
return := q.exec(ctx, q.{{.FieldName}}, {{.ConstantName}}, {{.Arg.Params}})
342+
return q.exec(ctx, q.{{.FieldName}}, {{.ConstantName}}, {{.Arg.Params}})
343343
{{- else}}
344344
return q.db.ExecContext(ctx, {{.ConstantName}}, {{.Arg.Params}})
345345
{{- end}}

0 commit comments

Comments
 (0)