rails/rails — pull request #10372 by jeremy (2013-04-29 01:14:41+00:00)
Title: StatementInvalid takes WrappedDatabaseException's place

`StatementInvalid` would be much more useful if it gave us access to the originating exception. Hoist that up from `WrappedDatabaseException` without breaking compatibility.