doctrine/dbal — pull request #336 by naroga (2013-06-14 14:50:09+00:00)
Title: Fixing error code on DBALException (forwarding SQL Error Code). 

'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.