mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-07 23:48:41 +01:00
Add clarification parenthesis in getEventOrTaskWithId
logic
This commit is contained in:
parent
575913cc35
commit
60740456a7
@ -21,7 +21,7 @@ interface EventsDao {
|
||||
@Query("SELECT * FROM events WHERE id = :id AND type = $TYPE_TASK")
|
||||
fun getTaskWithId(id: Long): Event?
|
||||
|
||||
@Query("SELECT * FROM events WHERE id = :id AND type = $TYPE_EVENT OR type = $TYPE_TASK")
|
||||
@Query("SELECT * FROM events WHERE id = :id AND (type = $TYPE_EVENT OR type = $TYPE_TASK)")
|
||||
fun getEventOrTaskWithId(id: Long): Event?
|
||||
|
||||
@Query("SELECT * FROM events WHERE import_id = :importId AND type = $TYPE_EVENT")
|
||||
|
Loading…
x
Reference in New Issue
Block a user