Skip to content

Commit

Permalink
Updated the switch name
Browse files Browse the repository at this point in the history
  • Loading branch information
DavoudEshtehari committed Apr 2, 2020
1 parent 549c62d commit 5f0d30c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static void RunTest()
Assert.Equal("12.3", value.ToString());

value = BulkCopySqlDecimalToTable(new SqlDecimal(123.45), 10, 2, 4, 1);
if (AppContext.TryGetSwitch("Microsoft.Data.SqlClient.TruncateScaledDecimal", out bool switchValue) && switchValue)
if (AppContext.TryGetSwitch("Switch.Microsoft.Data.SqlClient.TruncateScaledDecimal", out bool switchValue) && switchValue)
{
Assert.Equal("123.4", value.ToString());
}
Expand Down

0 comments on commit 5f0d30c

Please sign in to comment.