Skip to content

Commit d3e8c72

Browse files
committed
Upgrade to SqlClient 6.1.0 GA
1 parent bd1e532 commit d3e8c72

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

Directory.Packages.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
<PackageVersion Include="Microsoft.Azure.Cosmos" Version="3.51.0" />
4242

4343
<!-- SQL Server dependencies -->
44-
<PackageVersion Include="Microsoft.Data.SqlClient" Version="6.1.0-preview2.25178.5" />
45-
<PackageVersion Include="Microsoft.SqlServer.Types" Version="170.700.9-ctp2p0" />
44+
<PackageVersion Include="Microsoft.Data.SqlClient" Version="6.1.0" />
45+
<PackageVersion Include="Microsoft.SqlServer.Types" Version="160.1000.6" />
4646

4747
<!-- external dependencies -->
4848
<PackageVersion Include="Castle.Core" Version="5.2.1" />

src/EFCore.SqlServer/EFCore.SqlServer.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050

5151
<ItemGroup>
5252
<PackageReference Include="Microsoft.Data.SqlClient" />
53-
<PackageReference Include="Microsoft.SqlServer.Types" />
5453
</ItemGroup>
5554

5655
<ItemGroup>

src/EFCore.SqlServer/Storage/Internal/SqlServerVectorTypeMapping.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,11 @@ private sealed class VectorComparer() : ValueComparer<SqlVector<float>>(
125125
// This is because vectors are basically immutable, and it's better to have more efficient change tracking
126126
// equality checks.
127127
private static bool CalculateEquality(SqlVector<float>? x, SqlVector<float>? y)
128-
=> x is null
129-
? y is null
130-
: y is not null && (x.IsNull
131-
? y.IsNull
132-
: !y.IsNull && x.Memory.Span == y.Memory.Span);
128+
=> x is SqlVector<float> v1 && y is SqlVector<float> v2
129+
? v1.IsNull
130+
? v2.IsNull
131+
: !v2.IsNull && v1.Memory.Span == v2.Memory.Span
132+
: x is null && y is null;
133133

134134
private static int CalculateHashCode(SqlVector<float> vector)
135135
{

test/EFCore.SqlServer.FunctionalTests/Query/Translations/VectorTranslationsSqlServerTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public class VectorEntity
116116
public int Id { get; set; }
117117

118118
[Column(TypeName = "vector(3)")]
119-
public SqlVector<float> Vector { get; set; } = null!;
119+
public SqlVector<float> Vector { get; set; }
120120
}
121121

122122
public class VectorQueryFixture : SharedStoreFixtureBase<VectorQueryContext>

0 commit comments

Comments
 (0)