Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Commit

Permalink
[BZ 1022943] Fixes to PluginCriteria
Browse files Browse the repository at this point in the history
  • Loading branch information
metlos committed Mar 21, 2014
1 parent db61c09 commit ca9ee0e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ public class PluginCriteria extends Criteria {
public PluginCriteria() {
filterOverrides.put("resourceTypeIds",
"id IN (SELECT p.id FROM Plugin p, ResourceType rt WHERE rt.plugin = p.name AND rt.id IN ( ? ))");
filterOverrides.put("installed", "(? = 1 AND status = 'INSTALLED') OR (? = 0 AND status <> 'INSTALLED')");
filterOverrides.put("deleted", "(? = 1 AND status = 'DELETED') OR (? = 0 AND status <> 'INSTALLED");
filterOverrides.put("installed", "id IN (SELECT p.id FROM Plugin p WHERE (? = 1 AND p.status = 'INSTALLED') OR (? = 0 AND p.status <> 'INSTALLED'))");
filterOverrides.put("deleted", "id IN (SELECT p.id FROM Plugin p WHERE (? = 1 AND p.status = 'DELETED') OR (? = 0 AND p.status <> 'DELETED'))");
filterOverrides.put("markedForPurge",
"(? = 1 AND status = 'DELETED' AND ctime = -1) OR (? = 0 AND (status <> 'DELETED' OR ctime <> -1))");
"id IN (SELECT p.id FROM Plugin p WHERE (? = 1 AND p.status = 'DELETED' AND p.ctime = -1) OR (? = 0 AND (p.status <> 'DELETED' OR p.ctime <> -1)))");

}

Expand Down

0 comments on commit ca9ee0e

Please sign in to comment.