Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
anujc25 committed Sep 20, 2023
1 parent 6e7aa7b commit 89cedd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/plugininventory/sqlite_inventory.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ func createPluginWhereClause(filter *PluginInventoryFilter) (string, error) {
// e.g. If specified version is `v1` it matches with all versions like v1.MINOR.PATCH
// If specified version is `v1.2` it matches will all versions like v1.2.PATCH
// And "Version='%s'" condition will try to match with the exact same match for the version
whereClause = fmt.Sprintf("%s ( Version Like '%s.%%' OR Version='%s' ) AND", whereClause, filter.Version, filter.Version)
whereClause = fmt.Sprintf("%[1]s ( Version Like '%[2]s.%%' OR Version='%[2]s' ) AND", whereClause, filter.Version)
}
}
if !filter.IncludeHidden {
Expand Down

0 comments on commit 89cedd4

Please sign in to comment.