diff --git a/Src/ElasticScale.Client/Microsoft.Azure.SqlDatabase.ElasticScale.Client.csproj b/Src/ElasticScale.Client/Microsoft.Azure.SqlDatabase.ElasticScale.Client.csproj index e10e48e..00abd7f 100644 --- a/Src/ElasticScale.Client/Microsoft.Azure.SqlDatabase.ElasticScale.Client.csproj +++ b/Src/ElasticScale.Client/Microsoft.Azure.SqlDatabase.ElasticScale.Client.csproj @@ -5,7 +5,7 @@ © Microsoft Corporation. All rights reserved. Microsoft Azure SQL Database: Elastic Database Client Library en-US - 2.4.2-preview1 + 2.4.2 Microsoft netstandard2.0;net6.0 Microsoft;Elastic;Scale;Azure;SQL;DB;Database;Shard;Sharding;Management;Query;azureofficial @@ -24,7 +24,7 @@ - + diff --git a/Test/ElasticScale.ClientTestCommon/Microsoft.Azure.SqlDatabase.ElasticScale.ClientTestCommon.csproj b/Test/ElasticScale.ClientTestCommon/Microsoft.Azure.SqlDatabase.ElasticScale.ClientTestCommon.csproj index a069890..34f44a7 100644 --- a/Test/ElasticScale.ClientTestCommon/Microsoft.Azure.SqlDatabase.ElasticScale.ClientTestCommon.csproj +++ b/Test/ElasticScale.ClientTestCommon/Microsoft.Azure.SqlDatabase.ElasticScale.ClientTestCommon.csproj @@ -6,7 +6,7 @@ - + \ No newline at end of file diff --git a/Test/ElasticScale.Query.UnitTests/MultiShardTestUtils.cs b/Test/ElasticScale.Query.UnitTests/MultiShardTestUtils.cs index 902d03c..d217222 100644 --- a/Test/ElasticScale.Query.UnitTests/MultiShardTestUtils.cs +++ b/Test/ElasticScale.Query.UnitTests/MultiShardTestUtils.cs @@ -5,6 +5,7 @@ using System; using System.Collections.Generic; using System.Data; using System.Data.SqlTypes; +using System.Globalization; using System.Text; using Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement; using Microsoft.Data.SqlClient; @@ -728,7 +729,7 @@ namespace Microsoft.Azure.SqlDatabase.ElasticScale.Query.UnitTests // .NET range to test these consistently. // double theValue = s_random.NextDouble() * Decimal.ToDouble(Decimal.MaxValue); - return string.Format("CAST({0} AS {1})", theValue, column.ColumnTypeDeclaration); + return string.Format("CAST({0} AS {1})", theValue.ToString(CultureInfo.InvariantCulture), column.ColumnTypeDeclaration); } /// @@ -773,7 +774,7 @@ namespace Microsoft.Azure.SqlDatabase.ElasticScale.Query.UnitTests /// Tsql to cast the value. private static string GetSpecificDoubleCastAsArg(double theValue, MutliShardTestCaseColumn column) { - return string.Format("CAST({0} AS {1})", theValue, column.SqlServerDatabaseEngineType); + return string.Format("CAST({0} AS {1})", theValue.ToString(CultureInfo.InvariantCulture), column.SqlServerDatabaseEngineType); } ///