Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/NHibernate.Test/Async/NHSpecificTest/GH1300/Fixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ public void InsertWithTooLongValuesShouldThrowAsync()

var sqlEx = ex.InnerException as SqlException;
Assert.That(sqlEx, Is.Not.Null);
Assert.That(sqlEx.Number, Is.EqualTo(8152));
// Error code is different if verbose truncation warning is enabled
// See details: https://www.brentozar.com/archive/2019/03/how-to-fix-the-error-string-or-binary-data-would-be-truncated/
Assert.That(sqlEx.Number, Is.EqualTo(8152).Or.EqualTo(2628));
}
}

Expand Down
4 changes: 3 additions & 1 deletion src/NHibernate.Test/NHSpecificTest/GH1300/Fixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ public void InsertWithTooLongValuesShouldThrow()

var sqlEx = ex.InnerException as SqlException;
Assert.That(sqlEx, Is.Not.Null);
Assert.That(sqlEx.Number, Is.EqualTo(8152));
// Error code is different if verbose truncation warning is enabled
// See details: https://www.brentozar.com/archive/2019/03/how-to-fix-the-error-string-or-binary-data-would-be-truncated/
Assert.That(sqlEx.Number, Is.EqualTo(8152).Or.EqualTo(2628));
}
}

Expand Down