Migrated from sourceforge: https://sourceforge.net/p/p6spy/bugs/16/
Using the latest 5/27/09 svn snapshot, P6LogResultSet throws a CastCastException with H2Database.
I don't completely understand how it happens since the code seems to indicate that only a P6Connection would be returned, but instead a JDBCConnection is being returned.
The following patch provides a temporary workaround for the problem, but I don't think it qualifies as a real fix.
This no longer applies since we are using proxies.