Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 92067c8

Browse files
committed
Ignore identity insert test for MSSQL
1 parent a67aa72 commit 92067c8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/ServiceStack.OrmLite.Tests/OrmLiteSaveTests.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ public void Save_populates_AutoIncrementId()
3333
[Test]
3434
public void Can_disable_AutoIncrement_field()
3535
{
36+
//Can't insert in identity column
37+
if (Dialect == Dialect.SqlServer || Dialect == Dialect.SqlServer2012)
38+
return;
39+
3640
using (var db = OpenDbConnection())
3741
{
3842
db.DropAndCreateTable<PersonWithAutoId>();

0 commit comments

Comments
 (0)