Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handle hierarchyid correctly #1450

Merged
merged 1 commit into from
Mar 31, 2022
Merged

handle hierarchyid correctly #1450

merged 1 commit into from
Mar 31, 2022

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