Dev: DatabaseException might not be thrown even if query fails
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
调研方向
从 system/Debug/Exceptions.php 的第 174-176 行开始,并阅读 #6912 和 PR #6886 的上下文。比较 SQLite3、Postgres 和 OCI8 驱动路径,包括 SQLite3 的后续问题 #8467。完成的标准是:无论错误报告设置如何,查询失败都始终产生 DatabaseException,并且列出的驱动工作都已处理。
由索引模型根据 Issue 内容生成。
描述
SQLite3, Postgres and OCI8 drivers throw ErrorException when a query error occurs
because of Error Handler. See #6912
https://github.com/codeigniter4/CodeIgniter4/blob/ac1422c404a364f9493bbf1b22dacb18e3913982/system/Debug/Exceptions.php#L174-L176
So depending on the value of the error reporting setting, the ErrorException may not be thrown.
See https://github.com/codeigniter4/CodeIgniter4/pull/6886#issuecomment-1328148614
- SQLite3 #8467
- Postgres
- OCI8
- 主要语言
- PHP
- 星标
- 6k
- 派生
- 2k
- 平均合并
- 1 天 22 小时
- 30 天内合并 PR
- 59
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
codeigniter4/CodeIgniter4 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
codeigniter4/CodeIgniter4#10616 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 35/100
codeigniter4/CodeIgniter4#10618 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 62/100
codeigniter4/CodeIgniter4#10617 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 25/100
codeigniter4/CodeIgniter4#10615 · 1 条评论 ·
维护者通常 1 天内回复
-
bug
难度 4/5 3-5 天 新手友好度 48/100
codeigniter4/CodeIgniter4#10589 · 3 条评论 ·
维护者通常 1 天内回复
查看 codeigniter4/CodeIgniter4 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 84/100
scanaislop/aislop#476 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
components-web-app/api-components-bundle#403 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
mollie/PrestaShop#1566 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
components-web-app/docs#193 ·
-
docs: add Python and PHP examples to docs/api.md可能已有人在做 @gaurika-analyst 今天认领。 未关闭documentation good first issue
难度 2/5 1-3 小时 新手友好度 85/100
djazairdev/wilayas#12 · 1 条评论 ·
维护者通常 1 天内回复