From: Damyan Ivanov Date: Sat, 30 Jan 2021 13:08:42 +0000 (+0200) Subject: Room doesn't understand "NULLS FIRST" in the ORDER BY clause :( X-Git-Tag: v0.17.0~201 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=35d94bacc2d15d86998d903246a2e9adc9fd63c4;p=mobile-ledger.git Room doesn't understand "NULLS FIRST" in the ORDER BY clause :( --- diff --git a/app/src/main/java/net/ktnx/mobileledger/dao/PatternHeaderDAO.java b/app/src/main/java/net/ktnx/mobileledger/dao/PatternHeaderDAO.java index 43f688aa..a8ef1533 100644 --- a/app/src/main/java/net/ktnx/mobileledger/dao/PatternHeaderDAO.java +++ b/app/src/main/java/net/ktnx/mobileledger/dao/PatternHeaderDAO.java @@ -42,7 +42,7 @@ public interface PatternHeaderDAO { @Delete void delete(PatternHeader item); - @Query("SELECT * FROM patterns ORDER BY UPPER(name) NULLS FIRST") + @Query("SELECT * FROM patterns ORDER BY UPPER(name)") LiveData> getPatterns(); @Query("SELECT * FROM patterns WHERE id = :id")