Fix a mistake in the insert query

This commit is contained in:
Aaron L 2016-09-11 22:36:12 -07:00
parent 8392a4ba2a
commit 37a05de380

View file

@ -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}}")
}