Fixed test for MS SQL for columns with IDENTITY
This commit is contained in:
parent
4c2062caee
commit
0a50c90a58
1 changed files with 4 additions and 0 deletions
|
@ -41,7 +41,11 @@ func test{{$tableNamePlural}}InsertWhitelist(t *testing.T) {
|
|||
|
||||
tx := MustTx(boil.Begin())
|
||||
defer tx.Rollback()
|
||||
{{if ne .DriverName "mssql"}}
|
||||
if err = {{$varNameSingular}}.Insert(tx, {{$varNameSingular}}Columns...); err != nil {
|
||||
{{- else -}}
|
||||
if err = {{$varNameSingular}}.Insert(tx, {{$varNameSingular}}ColumnsWithoutDefault...); err != nil {
|
||||
{{- end}}
|
||||
t.Error(err)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue