Skip to content
This repository was archived by the owner on Jul 30, 2024. It is now read-only.

Commit b327fdf

Browse files
Missed an important trailing whitespace in the sql query that could break the query when concatenated. (#318)
1 parent 4d2c13c commit b327fdf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/NuGet.SupportRequests.Notifications/SqlQuery.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ internal static string GetUnresolvedIssues(string onCallPagerDutyUserName = null
99
{
1010
// If I.[CreatedBy] IS NULL, then the user data was deleted and the support request issue should be ignored.
1111
var query =
12-
"SELECT I.[CreatedBy], I.[CreatedDate], I.[PackageId], I.[PackageVersion], I.[OwnerEmail], I.[Reason], I.[PackageRegistrationKey], ISNULL(A.[PagerDutyUsername], \'Unassigned\') AS \'AdminPagerDutyUsername\', ISNULL(A.[GalleryUsername], \'Unassigned\') AS \'AdminGalleryUsername\', I.[IssueStatusId] AS \'IssueStatus\' FROM [dbo].[Issues] AS I (NOLOCK) LEFT OUTER JOIN [dbo].[Admins] AS A (NOLOCK) ON I.[AssignedToId] = A.[Key] WHERE I.[IssueStatusId] <> 3 AND I.[CreatedBy] IS NOT NULL";
12+
"SELECT I.[CreatedBy], I.[CreatedDate], I.[PackageId], I.[PackageVersion], I.[OwnerEmail], I.[Reason], I.[PackageRegistrationKey], ISNULL(A.[PagerDutyUsername], \'Unassigned\') AS \'AdminPagerDutyUsername\', ISNULL(A.[GalleryUsername], \'Unassigned\') AS \'AdminGalleryUsername\', I.[IssueStatusId] AS \'IssueStatus\' FROM [dbo].[Issues] AS I (NOLOCK) LEFT OUTER JOIN [dbo].[Admins] AS A (NOLOCK) ON I.[AssignedToId] = A.[Key] WHERE I.[IssueStatusId] <> 3 AND I.[CreatedBy] IS NOT NULL ";
1313

1414
if (!string.IsNullOrEmpty(onCallPagerDutyUserName))
1515
{

0 commit comments

Comments
 (0)