nilsjr / room-relationship-collate-nocase

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

room-relationship-collate-nocase

This repository contains minimal code to reproduce a room relationship with collate no case related issue.

Issue Tracker: https://issuetracker.google.com/issues/326258556

Description

UserWithBooks setups relation between one user and multiple books. Field "id" is marked as collate = ColumnInfo.NOCASE in User & "uid" in Book entity.

Prepopulated data: User table Book table

Actual:

  • Query books with Nils, nils or NILS results in the same list of books
  • Query user with books with Nils, nils or NILS results in different sized lists.

Expected:

  • Query user with books with Nils, nils or NILS results

See also DatabaseTest.kt

Run test task

gradle :app:testDebugUnitTest

About


Languages

Language:Kotlin 100.0%