Fix #43 in a slightly different way.
This commit is contained in:
parent
79a228e297
commit
cbb7041748
1 changed files with 2 additions and 2 deletions
|
@ -90,8 +90,8 @@ func (o *{{$tableNameSingular}}) Upsert(exec boil.Executor, {{if ne .DriverName
|
||||||
}
|
}
|
||||||
|
|
||||||
{{if ne .DriverName "mysql" -}}
|
{{if ne .DriverName "mysql" -}}
|
||||||
var conflict []string
|
conflict := conflictColumns
|
||||||
if len(conflictColumns) == 0 {
|
if len(conflict) == 0 {
|
||||||
conflict = make([]string, len({{$varNameSingular}}PrimaryKeyColumns))
|
conflict = make([]string, len({{$varNameSingular}}PrimaryKeyColumns))
|
||||||
copy(conflict, {{$varNameSingular}}PrimaryKeyColumns)
|
copy(conflict, {{$varNameSingular}}PrimaryKeyColumns)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue