Skip to content

Commit

Permalink
Package-Versions autocomplete endpoint does not properly handle semVe…
Browse files Browse the repository at this point in the history
…rLevel when using the db #4086 (#4087)
  • Loading branch information
xavierdecoster authored Jun 9, 2017
1 parent e027b61 commit d355d07
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public Task<IEnumerable<string>> Execute(
var semVerLevelKey = SemVerLevelKey.ForSemVerLevel(semVerLevel);
if (semVerLevelKey == SemVerLevelKey.SemVer2)
{
semVerLevelSqlFilter = "p.[SemVerLevelKey] = " + SemVerLevelKey.SemVer2;
semVerLevelSqlFilter = $"(p.[SemVerLevelKey] IS NULL OR p.[SemVerLevelKey] <= {SemVerLevelKey.SemVer2})";
}
}

Expand Down

0 comments on commit d355d07

Please sign in to comment.