Skip to content

Query cache and use setParameters not working properly #927

Closed
@ffyliu

Description

@ffyliu

🚨 First, please check:

Describe the bug
When I query data, I cache the query object and do the query, the result is normal. Then the next same method query uses setParameters method to modify parameters, and the result is not right.

Basic info (please complete the following information):

  • ObjectBox version 2.8.0
  • Reproducibility: always
  • Device: huawei mate 9
  • OS: Android 9

attachments are corresponding demo
1.compile and install apk
2.start the app and click on the database test in the upper right corner
3.click the bottom button and check the log.

demo explanation:
Entity:Message
method getMsgListWithType use setParameters(Property<?> property, int[] values) not work
method getMsgListWithType2 use setParameters(String alias, int[] values) not work
method getMsgList use setParameter work right.

TestAll.zip

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions