From 57a4f977803e5eb0d5ddb23e6d54e8490efe89c9 Mon Sep 17 00:00:00 2001 From: Sida Chen Date: Mon, 14 Aug 2017 16:14:55 -0400 Subject: [PATCH] pgSQL: fixed invalidating vulnerability cache query. --- database/pgsql/queries.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/pgsql/queries.go b/database/pgsql/queries.go index 64e5b20a..c7bd689b 100644 --- a/database/pgsql/queries.go +++ b/database/pgsql/queries.go @@ -413,6 +413,6 @@ func queryPersistLayer(count int) string { func queryInvalidateVulnerabilityCache(count int) string { return fmt.Sprintf(`DELETE FROM vulnerability_affected_feature - WHERE vulnerability_id = (%s)`, + WHERE vulnerability_id IN (%s)`, queryString(1, count)) }