diff options
Diffstat (limited to 'app/src/main/java/SubredditDatabase/SubredditDao.java')
-rw-r--r-- | app/src/main/java/SubredditDatabase/SubredditDao.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/java/SubredditDatabase/SubredditDao.java b/app/src/main/java/SubredditDatabase/SubredditDao.java index df763c93..657da989 100644 --- a/app/src/main/java/SubredditDatabase/SubredditDao.java +++ b/app/src/main/java/SubredditDatabase/SubredditDao.java @@ -14,9 +14,9 @@ public interface SubredditDao { @Query("DELETE FROM subreddits") void deleteAllSubreddits(); - @Query("SELECT * from subreddits WHERE name = :namePrefixed LIMIT 1") + @Query("SELECT * from subreddits WHERE name = :namePrefixed COLLATE NOCASE LIMIT 1") LiveData<SubredditData> getSubredditLiveDataByName(String namePrefixed); - @Query("SELECT * from subreddits WHERE name = :namePrefixed LIMIT 1") + @Query("SELECT * from subreddits WHERE name = :namePrefixed COLLATE NOCASE LIMIT 1") SubredditData getSubredditData(String namePrefixed); } |