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…
Reference in New Issue