cyclonephp/DB — Issue #1: Constraint violation exceptions
Author: crystal88
Created: 2012-01-18 14:46:08+00:00
State: open

The database executors and prepared executors should throw cyclone\db\ConstraintException instances when the SQL statement fails due to a database constraint violation. This already works in cyclone\db\executor\PostgresExecutor.
To achieve this the error messages need to be parsed. The constraint exceptions should store the following information:

* constraint type (unique/primary/foreign)
* the affected columns
* the constraint name
* the conflicting values (optional)