loopbackio / loopbackio/loopback-connector-sqlite3
Filtering with non existing / declared field is ignored
未关闭
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 13
- 派生
- 21
- PR 合并指标
- 30 天内没有已合并 PR
描述
Bug or feature request
- Bug
- Feature request
Description of feature (or steps to reproduce if bug)
- Insert 10 rows in a model/table
- Model.find({where: { nonexistingfield: 'test' } })
- Return 10
Expected result
Return 0 (Memory connector return 0)
Maybe this should return an error ?
Actual result (if bug)
Return all the documents/rows
Additional information (Node.js version, LoopBack version, etc)
Tested with master of loopback-connector-sqlite3
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
Start by reproducing the issue with the SQLite3 connector using Model.find({where: { nonexistingfield: 'test' } }) after inserting 10 rows. Compare the result with the stated Memory connector behavior and determine whether an unknown field should return zero rows or an error. Done means the SQLite3 connector no longer returns all rows for this filter, with coverage for the reported query.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript, sqlite
- 领域
- database
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100