Fix a mistake in the insert query
This commit is contained in:
parent
8392a4ba2a
commit
37a05de380
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ func (o *{{$tableNameSingular}}) Insert(exec boil.Executor, whitelist ... string
|
|||
fmt.Fprintln(boil.DebugWriter, vals)
|
||||
}
|
||||
|
||||
result, err := exec.Exec(ins, vals...)
|
||||
result, err := exec.Exec(cache.query, vals...)
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "{{.PkgName}}: unable to insert into {{.Table.Name}}")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue