From c54c9f4a6d9981ceb345d31316ab62c610ba76b5 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Fri, 24 Jan 2025 16:19:42 -0500 Subject: [PATCH] Check for aliases in a case-insensitive manner --- crates/lib/src/pantry_db.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/lib/src/pantry_db.rs b/crates/lib/src/pantry_db.rs index 7ffa5d32..0ff5557a 100644 --- a/crates/lib/src/pantry_db.rs +++ b/crates/lib/src/pantry_db.rs @@ -123,7 +123,7 @@ pub fn projects_for_symbol( " SELECT project FROM provides WHERE program = ?1 UNION - SELECT project FROM aliases WHERE alias = ?1;", + SELECT project FROM aliases WHERE LOWER(alias) = LOWER(?1);" )?; let mut rv = Vec::new(); let mut rows = stmt.query(params![symbol])?;