]> git.ktnx.net Git - mobile-ledger.git/commitdiff
Room doesn't understand "NULLS FIRST" in the ORDER BY clause :(
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 30 Jan 2021 13:08:42 +0000 (15:08 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 30 Jan 2021 13:08:42 +0000 (15:08 +0200)
app/src/main/java/net/ktnx/mobileledger/dao/PatternHeaderDAO.java

index 43f688aab2a1b7bd8d994b06f0e9800f744ce0a4..a8ef1533720c9ed1da0df2cb6dda5f1570b6dc04 100644 (file)
@@ -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<List<PatternHeader>> getPatterns();
 
     @Query("SELECT * FROM patterns WHERE id = :id")