HierarchId: Cannot call methods on varchar #30307
Labels
area-hierarchyid
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
type-bug
Milestone
When calling a method on a constant hierarchyid value...
...we generate a text literal and try to call an instance method on it...
...which results in an error.
Instead, we should generate a hierarchyid value.
The spatial extension handles this by always generating fully-qualified literals...
efcore/src/EFCore.SqlServer.NTS/Storage/Internal/SqlServerGeometryTypeMapping.cs
Lines 84 to 99 in c94a821
...but then simplifies them to string literals when translating methods that take them as parameters:
efcore/src/EFCore.SqlServer.NTS/Query/Internal/SqlServerGeometryMethodTranslator.cs
Lines 189 to 203 in c94a821
The text was updated successfully, but these errors were encountered: