fix(db): 修复事务模式下的错误处理与回滚机制

- 在 `queryWithRetry` 和 `execWithRetry` 方法中添加对 `txFailed` 的状态管理,确保在 SQL 错误时正确标记事务失败
- 增加新的测试用例以验证事务模式下的错误处理逻辑,确保在 SQL 错误发生时能够正确回滚
- 优化测试数据库的初始化方法,支持事务测试场景
This commit is contained in:
2026-04-12 00:53:22 +08:00
parent 277e244e80
commit 86daa3153e
5 changed files with 696 additions and 1292 deletions
File diff suppressed because it is too large Load Diff