Renew connection if it was closed
Open
Nobody has claimed this yet.
status:ready for adoption
type:feature
- Dominant language
- PHP
- Stars
- 216
- Forks
- 51
- Avg merge
- 3d 10h
- Merged PRs (30d)
- 2
Description
Proposed new feature or change
- Collect params to bind
https://github.com/yiisoft/db/blob/e753995673aafcbd97e84a489ee09e0b80ee811d/src/Driver/Pdo/AbstractPdoCommand.php#L77 - Pass
CommandInterface($this) toretryHandler()#1130
https://github.com/yiisoft/db/blob/e753995673aafcbd97e84a489ee09e0b80ee811d/src/Driver/Pdo/AbstractPdoCommand.php#L210 - By default, try to renew connection and
pdoStatementif the connection was closed - Throw an exception if a transaction was started
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in src/Driver/Pdo/AbstractPdoCommand.php at the parameter-binding reference and the retryHandler() call around line 210; also read issue #1130. Trace how CommandInterface, the connection, and the PDO statement are handled, then verify that the requested renewal behavior and transaction exception are covered.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100