You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
logger.LogError("When using the @FileResult option, no return declarations should be defined",source,node.StartLine,node.StartColumn);
78
77
}
79
78
80
-
if(!IsValidFileResult(results))
79
+
if(definition.MergeGridResult)
81
80
{
82
-
logger.LogError("When using the @FileResult option, the query should return only one output statement with the following schema: ([type] NVARCHAR, [data] VARBINARY, [filename] NVARCHAR NULL)",source,node.StartLine,node.StartColumn);
81
+
logger.LogError("When using the @FileResult option, the @MergeGridResult option is invalid",source,node.StartLine,node.StartColumn);
83
82
}
84
83
85
-
if(definition.MergeGridResult)
84
+
if(results.Count!=1)
86
85
{
87
-
logger.LogError("When using the @FileResult option, the @MergeGridResult option is invalid",source,node.StartLine,node.StartColumn);
86
+
logger.LogError("When using the @FileResult option, there should only be a single SELECT statement",source,node.StartLine,node.StartColumn);
logger.LogError("When using the @FileResult option, the column [data] should be the last column in the SELECT",source,dataColumn.PrimarySource.StartLine,dataColumn.PrimarySource.StartColumn);
logger.LogError($"When using the @FileResult option, the SELECT statement should return the column [{columnName}] {expectedTypesString.ToString().ToUpperInvariant()}",source,select.Line,select.Column);
logger.LogError($"When using the @FileResult option, the column [{columnName}] should have the type {expectedTypesString.ToString().ToUpperInvariant()}",source,column.PrimarySource.StartLine,column.PrimarySource.StartColumn);
0 commit comments