Deadlock handlingScope of ChangeA new class rdbms.SQLDeadlockException will be introduced. The rdbms drivers will handle dead lock situations specially and throw this new exception instead of a generic SQLStatementFailedException. Rationale
Deadlocks are a very special case in database systems and often need
special programmatic handling. Functionality
Inheritance
lang.Throwable
`- lang.XPException
`- rdbms.SQLException
`- rdbms.SQLDeadlockExceptionExample (current usage)
$conn= DriverManager::getConnection('sybase://...'); Problems with this approach:
Sybase
MySQL
PostgreSQL
Example (new functionality)
$conn= DriverManager::getConnection('sybase://...');
Security considerations
n/a Speed impact
Neglectible. Dependencies
n/a Related documents
- http://www.xaprb.com/blog/2006/08/08/how-to-deliberately-cause-a-deadlock-in-mysql/
- http://www.blacksheepnetworks.com/security/resources/bossconsulting/sybase_dba/sublevels/deadlock.info
- http://www.compuspec.net/reference/database/sybase/deadlock.shtml
- http://xp-framework.net/rfc/contrib/rfc0159.diff Comments
| Table of contents |