fix #300, make the note title check at renaming case insensitive

This commit is contained in:
tibbi
2019-12-07 13:03:29 +01:00
parent ded6231dab
commit 4c98d5201e
2 changed files with 4 additions and 1 deletions

View File

@ -17,6 +17,9 @@ interface NotesDao {
@Query("SELECT id FROM notes WHERE title = :title COLLATE NOCASE")
fun getNoteIdWithTitle(title: String): Long?
@Query("SELECT id FROM notes WHERE title = :title")
fun getNoteIdWithTitleCaseSensitive(title: String): Long?
@Insert(onConflict = OnConflictStrategy.REPLACE)
fun insertOrUpdate(note: Note): Long