Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Dev: DatabaseException might not be thrown even if query fails

未关闭
#6,913 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
php, postgresql, sqlite
领域
databases

调研方向

从 system/Debug/Exceptions.php 的第 174-176 行开始,并阅读 #6912 和 PR #6886 的上下文。比较 SQLite3、Postgres 和 OCI8 驱动路径,包括 SQLite3 的后续问题 #8467。完成的标准是:无论错误报告设置如何,查询失败都始终产生 DatabaseException,并且列出的驱动工作都已处理。

由索引模型根据 Issue 内容生成。

描述

database dev

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

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

codeigniter4/CodeIgniter4 的其他 Issue

查看 codeigniter4/CodeIgniter4 的全部 Issue

相似的 Issue

更多 PHP Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。