Skip to content

handle hierarchyid correctly#1450

Merged
alanrenmsft merged 1 commit intomainfrom
alanren/fix-hierarchyId
Mar 31, 2022
Merged

handle hierarchyid correctly#1450
alanrenmsft merged 1 commit intomainfrom
alanren/fix-hierarchyId

Conversation

@alanrenmsft
Copy link
Contributor

this PR fixes: microsoft/azuredatastudio#18154

the sql datatype for hierarchyid has always been nvarchar here, but previously we were not relying on it. Now we are using SqlDataType to decide how to handle the serialization/deserialization,.

fix:
treat it as binary and added test for it.

also added test for sysname data type that were handled specially but do not have test coverage.

before:
image

after:
image

SSMS:
image

@alanrenmsft alanrenmsft merged commit 3452c43 into main Mar 31, 2022
@alanrenmsft alanrenmsft deleted the alanren/fix-hierarchyId branch March 31, 2022 22:18
nofield pushed a commit that referenced this pull request Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Columns of type 'hierarchyid' display incorrectly as unicode strings

2 participants