Merge pull request #250 from Azure/andreabatina/2.4.2-release
2.4.2-release
This commit is contained in:
Коммит
b31d748a57
|
@ -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>
|
||||
|
@ -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>
|
||||
|
|
|
@ -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,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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -773,7 +774,7 @@ namespace Microsoft.Azure.SqlDatabase.ElasticScale.Query.UnitTests
|
|||
/// <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>
|
||||
|
|
Загрузка…
Ссылка в новой задаче