Issue Details (XML | Word | Printable)

Key: DBAL-32
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Benjamin Eberlei
Reporter: Roman S. Borschel
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Doctrine DBAL

Ensure that error mode is EXCEPTION if existing PDO instance used

Created: 07/Jul/10 06:03 AM   Updated: 07/Jul/10 10:15 AM
Component/s: None
Affects Version/s: None
Fix Version/s: 2.0.0-BETA3


 Description  « Hide
I am not sure whether we do that already but I remember having talked about it. It would probably be good to ensure that error mode is EXCEPTION if an existing PDO instance is used to create a DBAL Connection. Simply forcing the error mode by using setAttribute(PDO::ATTR_ERRMODE, PDO::ATTR_ERRMODE_EXCEPTION) should be sufficient.

 All   Comments   Change History   FishEye      Sort Order: Ascending order - Click to sort in descending order
Benjamin Eberlei added a comment - 07/Jul/10 10:15 AM
fixed