handle UDT type (#1424)

This commit is contained in:
Alan Ren
2022-03-11 18:10:08 -08:00
committed by GitHub
parent d62b0f7609
commit b495ea7475
2 changed files with 11 additions and 1 deletions

View File

@@ -182,7 +182,11 @@ namespace Microsoft.SqlTools.ServiceLayer.QueryExecution.DataStorage
else
{
Type type;
if (!sqlDBTypeMap.TryGetValue(column.SqlDbType, out type))
if (column.SqlDbType == SqlDbType.Udt)
{
type = column.DataType;
}
else if (!sqlDBTypeMap.TryGetValue(column.SqlDbType, out type))
{
type = typeof(SqlString);
}