Reza Taroosheh created IGNITE-28567:
---------------------------------------
Summary: IgniteDbParameter.ToString() is culture-dependent and
breaks TestToString
Key: IGNITE-28567
URL: https://issues.apache.org/jira/browse/IGNITE-28567
Project: Ignite
Issue Type: Bug
Components: .NET
Reporter: Reza Taroosheh
The {{TestToString}} unit test in
{{Apache.Ignite.Tests.Sql.IgniteDbParameterTests}} fails on Windows when the
decimal separator is set to {{{},{}}}.
This behavior is controlled by
{{{}System.Globalization.CultureInfo.CurrentCulture.NumberFormat.NumberDecimalSeparator{}}}.
*Error Message*
String lengths are both 34. Strings differ at index 30.
Expected: "IgniteDbParameter \{ Value = 12.3 }"
But was: "IgniteDbParameter \{ Value = 12,3 }"
*Steps to Reproduce*
# Set the OS decimal separator to {{,}} (Windows regional settings).
# Run tests.
# Observe failure in {{{}TestToString{}}}.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)