Skip to content

Commit f0a4ffc

Browse files
committed
Make host_dao facility query case-insensitive
1 parent 9ffcb65 commit f0a4ffc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/crates/scheduler/src/dao/host_dao.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ FROM host h
160160
INNER JOIN alloc a ON h.pk_alloc = a.pk_alloc
161161
INNER JOIN subscription s ON s.pk_alloc = a.pk_alloc AND s.pk_show = $1
162162
INNER JOIN host_tag ht ON h.pk_host = ht.pk_host
163-
WHERE a.pk_facility = $2
163+
WHERE LOWER(a.pk_facility) = LOWER($2)
164164
AND h.str_lock_state = 'OPEN'
165165
AND hs.str_state = 'UP'
166166
AND ht.str_tag = $3

0 commit comments

Comments
 (0)