Fixed test for MS SQL for columns with IDENTITY

This commit is contained in:
Sergey Kurt 2017-03-16 09:55:50 +03:00
parent 4c2062caee
commit 0a50c90a58

View file

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