[DBAL-545] [GH-336] Fixing error code on DBALException (forwarding SQL Error Code). Created: 14/Jun/13  Updated: 15/Jun/13  Resolved: 15/Jun/13

Status: Resolved
Project: Doctrine DBAL
Component/s: None
Affects Version/s: None
Fix Version/s: None
Security Level: All

Type: Bug Priority: Major
Reporter: Doctrine Bot Assignee: Marco Pivetta
Resolution: Invalid Votes: 0
Labels: None


 Description   

This issue is created automatically through a Github pull request on behalf of naroga:

Url: https://github.com/doctrine/dbal/pull/336

Message:

'0' was the previous hardcoded error code. I'm just forwarding whatever SQL Error code might occur during a query.

Previous to this fix, we'd have to check for whatever Exception was thrown before DBALException in order to get the error code.

Useful when trying to come up with user-friendly error messages.



 Comments   
Comment by Doctrine Bot [ 15/Jun/13 ]

A related Github Pull-Request [GH-336] was closed:
https://github.com/doctrine/dbal/pull/336

Generated at Fri Aug 01 00:06:24 UTC 2014 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.