handle hierarchyid correctly (#1450)

This commit is contained in:
Alan Ren
2022-03-31 15:18:15 -07:00
committed by GitHub
parent 2ace786d95
commit 3452c43a51
2 changed files with 13 additions and 1 deletions

View File

@@ -243,7 +243,7 @@ namespace Microsoft.SqlTools.ServiceLayer.QueryExecution.Contracts
SqlDbType = SqlDbType.NVarChar;
break;
default:
SqlDbType = DataTypeName.EndsWith(".sys.hierarchyid") ? SqlDbType.NVarChar : SqlDbType.Udt;
SqlDbType = DataTypeName.EndsWith(".sys.hierarchyid") ? SqlDbType.Binary : SqlDbType.Udt;
break;
}
}