-
Notifications
You must be signed in to change notification settings - Fork 1.8k
The condition equalTo() seems wrong #5585
Copy link
Copy link
Closed
Labels
Description
Here's peek from my java file PlayHistory.java:
public class PlayHistory extends RealmObject{
@PrimaryKey
private String id;
public String categorySn = "";
public String mediaSn = "";
private int type = TYPE_AUDIO_ONLY;
}And this my query:
PlayHistory playHistory = realm.where(PlayHistory.class)
.equalTo("type", type)
.equalTo("categorySn", categorySn)
.findFirst();It works well until the categorySn becomes integer, like "11115454454".The playHistory is always null if categorySn is an integer.
I don't know why.
I use Realm-4.2.0.
Reactions are currently unavailable