Sgreen/update messages (#97)

Update messages to fix typo and remove (s).
This commit is contained in:
sgreenmsft
2016-10-19 14:55:09 -07:00
committed by GitHub
parent 2721de1de7
commit aa5432d0be
5 changed files with 32 additions and 473 deletions

View File

@@ -219,7 +219,6 @@ namespace Microsoft.SqlTools.ServiceLayer.QueryExecution
// Read until we hit the end of the result set
await resultSet.ReadResultToEnd(cancellationToken).ConfigureAwait(false);
} while (await reader.NextResultAsync(cancellationToken));
// If there were no messages, for whatever reason (NO COUNT set, messages
@@ -295,7 +294,17 @@ namespace Microsoft.SqlTools.ServiceLayer.QueryExecution
private void StatementCompletedHandler(object sender, StatementCompletedEventArgs args)
{
// Add a message for the number of rows the query returned
resultMessages.Add(new ResultMessage(SR.QueryServiceAffectedRows(args.RecordCount)));
string message;
if (args.RecordCount == 1)
{
message = SR.QueryServiceAffectedOneRow;
}
else
{
message = SR.QueryServiceAffectedRows(args.RecordCount);
}
resultMessages.Add(new ResultMessage(message));
}
/// <summary>