litesuits / litesuits/android-lite-orm

查询id对不上结果对不上

Open
#30 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
1.5k
Forks
359
PR merge metrics
No merged PRs in 30d

Description

保存数据id为1-8;使用
QueryBuilder queryBuilder = new QueryBuilder(ProblemDetailBean.class);
queryBuilder.whereEquals("id", "5");
或queryById(5, MyClass.class) 均没有返回值(确定query(MyClass.class)返回了所有值, debug断点查了20分钟确定)。设置whereLessThan(“5”)时返回了所有值。

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported cases through QueryBuilder: query(MyClass.class), whereEquals("id", "5"), queryById(5, MyClass.class), and whereLessThan("5"). Trace the query entry points and SQLite filtering involved; done means the id lookup returns the matching saved record and the less-than condition no longer returns every record.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java, sqlite
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.