Browse files

Fixed casing of DownLoadCount to DownloadCount so it is consistent wi…

…th the field name. This is required for proper functioning on a SQL Server with collation Latin_General_BIN.
  • Loading branch information...
1 parent 953c942 commit 7b71fbf516f476fc3bd0ef2314f0cccf3345485f @FilipDeVos FilipDeVos committed Jun 13, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 Website/Infrastructure/Jobs/UpdateStatisticsJob.cs
View
8 Website/Infrastructure/Jobs/UpdateStatisticsJob.cs
@@ -51,7 +51,7 @@ DownloadCount int
GROUP BY stats.PackageKey
UPDATE tmp
-SET DownLoadCount = tmp.DownloadCount + p.DownloadCount
+SET DownloadCount = tmp.DownloadCount + p.DownloadCount
FROM @DownloadStats tmp INNER JOIN
(
SELECT [Key], DownloadCount
@@ -62,7 +62,7 @@ FROM Packages
BEGIN TRANSACTION
UPDATE p
- SET p.DownLoadCount = stats.DownloadCount
+ SET p.DownloadCount = stats.DownloadCount
FROM Packages p INNER JOIN @DownloadStats stats
ON p.[Key] = stats.PackageKey
@@ -72,7 +72,7 @@ UPDATE GallerySettings
COMMIT TRANSACTION
UPDATE pr
-SET pr.DownLoadCount = totals.DownloadCount
+SET pr.DownloadCount = totals.DownloadCount
FROM PackageRegistrations pr INNER JOIN
(
SELECT PackageRegistrationKey, DownloadCount = SUM(DownloadCount)
@@ -86,4 +86,4 @@ FROM Packages
}
}
}
-}
+}

0 comments on commit 7b71fbf

Please sign in to comment.