mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-17 11:01:39 -05:00
Fix Edit Data exceptions on spatial types (#619)
* Fix Edit Data exceptions on spatial types * One more code convention cleanup.
This commit is contained in:
@@ -420,7 +420,10 @@ namespace Microsoft.SqlTools.ServiceLayer.QueryExecution
|
||||
|
||||
private void ExtendResultMetadata(List<DbColumn[]> columnSchemas, List<ResultSet> results)
|
||||
{
|
||||
if (columnSchemas.Count != results.Count) return;
|
||||
if (columnSchemas.Count != results.Count)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
for (int i = 0; i < results.Count; i++)
|
||||
{
|
||||
@@ -436,7 +439,7 @@ namespace Microsoft.SqlTools.ServiceLayer.QueryExecution
|
||||
DbColumnWrapper resultCol = result.Columns[j];
|
||||
DbColumn schemaCol = columnSchema[j];
|
||||
|
||||
if(!string.Equals(resultCol.DataTypeName, schemaCol.DataTypeName)
|
||||
if (!string.Equals(resultCol.DataTypeName, schemaCol.DataTypeName, StringComparison.OrdinalIgnoreCase)
|
||||
|| (!string.Equals(resultCol.ColumnName, schemaCol.ColumnName)
|
||||
&& !string.IsNullOrEmpty(schemaCol.ColumnName)
|
||||
&& !string.Equals(resultCol, SR.QueryServiceColumnNull)))
|
||||
|
||||
Reference in New Issue
Block a user