-
Notifications
You must be signed in to change notification settings - Fork 314
Labels
Area\VectorUse this for issues that are targeted for the Vector feature in the driver.Use this for issues that are targeted for the Vector feature in the driver.P1Use to label relatively higher severity issues, or issues that impact a large number of customers.Use to label relatively higher severity issues, or issues that impact a large number of customers.Triage Done ✔️Issues that are triaged by dev team and are in investigation.Issues that are triaged by dev team and are in investigation.
Milestone
Description
Using version 6.1.0:
// <PackageReference Include="Microsoft.Data.SqlClient" Version="6.1.0" />
using Microsoft.Data.SqlTypes;
Console.WriteLine(SqlVector<float>.Null.IsNull);
Results in:
Unhandled exception. System.MissingMethodException: Method not found: 'Microsoft.Data.SqlTypes.SqlVector`1<!0> Microsoft.Data.SqlTypes.SqlVector`1.get_Null()'.
at Program.<Main>$(String[] args)
Is it because?...
Here, the return value is not defined as nullable:
SqlClient/src/Microsoft.Data.SqlClient/netcore/ref/Microsoft.Data.SqlClient.cs
Lines 133 to 134 in b89ac49
/// <include file='../../../../doc/snippets/Microsoft.Data.SqlTypes/SqlVector.xml' path='docs/members[@name="SqlVector"]/Null/*' /> | |
public static SqlVector<T> Null => throw null; |
While here, the return value is defined as nullable:
SqlClient/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlTypes/SqlVector.cs
Lines 107 to 108 in b89ac49
/// <include file='../../../../doc/snippets/Microsoft.Data.SqlTypes/SqlVector.xml' path='docs/members[@name="SqlVector"]/Null/*' /> | |
public static SqlVector<T>? Null => null; |
(And this was not updated when SqlVector became a value type.)
Metadata
Metadata
Assignees
Labels
Area\VectorUse this for issues that are targeted for the Vector feature in the driver.Use this for issues that are targeted for the Vector feature in the driver.P1Use to label relatively higher severity issues, or issues that impact a large number of customers.Use to label relatively higher severity issues, or issues that impact a large number of customers.Triage Done ✔️Issues that are triaged by dev team and are in investigation.Issues that are triaged by dev team and are in investigation.