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

Commit c049337

Browse files
committed
Update OrmLiteUpdateTests.cs
1 parent fa264a8 commit c049337

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/ServiceStack.OrmLite.Tests/OrmLiteUpdateTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,8 @@ void AssertDbStringParamSizes(IDbCommand cmd)
718718
{
719719
if (p.Value is string s)
720720
{
721-
Assert.That(p.Size, Is.EqualTo(converter.StringLength));
721+
//MySql sets DB Param to string length
722+
Assert.That(p.Size, Is.EqualTo(converter.StringLength).Or.EqualTo(s.Length));
722723
}
723724
}
724725
}

0 commit comments

Comments
 (0)