mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-17 02:51:45 -05:00
handle null value (#1790)
This commit is contained in:
@@ -174,7 +174,7 @@ namespace Microsoft.SqlTools.ServiceLayer.QueryExecution.DataStorage
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Get true type of the object
|
// Get true type of the object
|
||||||
Type tVal = values[i].GetType();
|
Type tVal = values[i] == null ? typeof(DBNull) : values[i].GetType();
|
||||||
|
|
||||||
// Write the object to a file
|
// Write the object to a file
|
||||||
if (tVal == typeof(DBNull))
|
if (tVal == typeof(DBNull))
|
||||||
|
|||||||
Reference in New Issue
Block a user