Skip to content

Commit 6a91e73

Browse files
[cuebot] Fix HostSearch substring for loose search. (#1076)
1 parent 9e03b95 commit 6a91e73

File tree

1 file changed

+1
-1
lines changed
  • cuebot/src/main/java/com/imageworks/spcue/dao/criteria/postgres

1 file changed

+1
-1
lines changed

cuebot/src/main/java/com/imageworks/spcue/dao/criteria/postgres/HostSearch.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public void filterByAlloc(AllocationInterface alloc) {
4444
public void buildWhereClause() {
4545
addPhrase("host.pk_host", criteria.getIdsList());
4646
addPhrase("host.str_name", criteria.getHostsList());
47-
addPhrase("host.str_name", new HashSet<>(criteria.getSubstrList()));
47+
addLikePhrase("host.str_name", new HashSet<>(criteria.getSubstrList()));
4848
addRegexPhrase("host.str_name", new HashSet<>(criteria.getRegexList()));
4949
addPhrase("alloc.str_name", criteria.getAllocsList());
5050
Set<String> items = new HashSet<>(criteria.getStates().getStateCount());

0 commit comments

Comments
 (0)