Skip to content

Commit

Permalink
Fixed error showing execution plan with calculated columns
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkMpn committed Nov 6, 2023
1 parent 749b9e5 commit 1ed3d60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MarkMpn.Sql4Cds.Engine/ExecutionPlanNodeTypeDescriptor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ private static string GetPropertyName(System.Collections.IList list, object item
.SingleOrDefault(p => p.GetCustomAttribute<DictionaryKeyAttribute>() != null);

if (dictionaryKeyProperty != null)
return dictionaryKeyProperty.GetValue(item).ToString();
return dictionaryKeyProperty.GetValue(item)?.ToString() ?? " ";

return index.ToString().PadLeft((int)Math.Ceiling(Math.Log10(list.Count)), '0');
}
Expand Down

0 comments on commit 1ed3d60

Please sign in to comment.