From 0a50c90a58a68f3014068477d2bab5d99d4b69f4 Mon Sep 17 00:00:00 2001 From: Sergey Kurt Date: Thu, 16 Mar 2017 09:55:50 +0300 Subject: [PATCH] Fixed test for MS SQL for columns with IDENTITY --- templates_test/insert.tpl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates_test/insert.tpl b/templates_test/insert.tpl index d14a0c8..82f87b6 100644 --- a/templates_test/insert.tpl +++ b/templates_test/insert.tpl @@ -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) }