Skip to content

Commit

Permalink
Merge pull request #250 from Azure/andreabatina/2.4.2-release
Browse files Browse the repository at this point in the history
2.4.2-release
  • Loading branch information
batinanet authored Aug 20, 2024
2 parents 8838b77 + 4480e0e commit b31d748
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
<AssemblyTitle>Microsoft Azure SQL Database: Elastic Database Client Library</AssemblyTitle>
<NeutralLanguage>en-US</NeutralLanguage>
<Version>2.4.2-preview1</Version>
<Version>2.4.2</Version>
<Authors>Microsoft</Authors>
<TargetFrameworks>netstandard2.0;net6.0</TargetFrameworks>
<PackageTags>Microsoft;Elastic;Scale;Azure;SQL;DB;Database;Shard;Sharding;Management;Query;azureofficial</PackageTags>
Expand All @@ -24,7 +24,7 @@
<Import Project="$([MSBuild]::GetPathOfFileAbove('strongname.props'))" />

<ItemGroup>
<PackageReference Include="Microsoft.Data.SqlClient" Version="5.1.5" />
<PackageReference Include="Microsoft.Data.SqlClient" Version="5.2.1" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<Import Project="$([MSBuild]::GetPathOfFileAbove('build.props'))" />
<Import Project="$([MSBuild]::GetPathOfFileAbove('strongname.props'))" />
<ItemGroup>
<PackageReference Include="Microsoft.Data.SqlClient" Version="5.1.5" />
<PackageReference Include="Microsoft.Data.SqlClient" Version="5.2.1" />
<PackageReference Include="MSTest.TestFramework" Version="3.2.1" />
</ItemGroup>
</Project>
5 changes: 3 additions & 2 deletions Test/ElasticScale.Query.UnitTests/MultiShardTestUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
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;
Expand Down Expand Up @@ -728,7 +729,7 @@ private static string GetRandomSqlDecimalValue(MutliShardTestCaseColumn column)
// .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);
}

/// <summary>
Expand Down Expand Up @@ -773,7 +774,7 @@ private static string GetRandomSqlRealValue(MutliShardTestCaseColumn column)
/// <returns>Tsql to cast the value.</returns>
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);
}

/// <summary>
Expand Down

0 comments on commit b31d748

Please sign in to comment.