cakephp/cakephp — pull request #4717 by lorenzo (2014-09-24 19:36:35+00:00)
Title: 3.0 - Show SQL when exception happens

This restores the feature of showing the bad SQL when a PDO exception happens. Also contains a small memory optimization for ResultSet