zendframework/zf2 — pull request #1222 by shevron (2012-05-14 09:07:40+00:00)
Title: Add SQL error code to exceptions thrown due to SQL errors in Zend\Db

I'm not sure exceptions are done on the new Zend\Db but if so some of them are missing an error code. It is quite helpful to have the origin SQL error code with the exception.

This pull request shows one place where this is missing - it is very possible this needs more work.