codeigniter4 / codeigniter4/CodeIgniter4
Dev: DatabaseException might not be thrown even if query fails
- 主要語言
- PHP
- 星號
- 6k
- 分支
- 2k
- 平均合併
- 1 天 11 小時
- 30 天內合併 PR
- 73
描述
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
貢獻指南
研究方向
Start with system/Debug/Exceptions.php at lines 174-176 and read the context from #6912 and PR #6886. Compare the SQLite3, Postgres, and OCI8 driver paths, including the SQLite3 follow-up #8467. Done means query failures consistently produce DatabaseException regardless of the error reporting setting, with the listed driver work addressed.
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- php, postgresql, sqlite
- 領域
- databases
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100