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
We do, but it is not what this case needs. I don't want to wrap ResultSet with another buffer as there is not point to it. The buffer is useful when result formatters are applied