mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-06-05 17:00:23 +02:00
fix #300, make the note title check at renaming case insensitive
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user