Bug #71924 | StatementInterceptorV2.postProcess() exceptions swallows other exceptions | ||
---|---|---|---|
Submitted: | 4 Mar 2014 13:22 | Modified: | 4 Mar 2014 13:23 |
Reporter: | Filipe Silva | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | Connector / J | Severity: | S3 (Non-critical) |
Version: | 5.1.29 | OS: | Any |
Assigned to: | Filipe Silva | CPU Architecture: | Any |
[4 Mar 2014 13:22]
Filipe Silva
[4 Mar 2014 16:23]
Filipe Silva
Posted by developer: Instead of the postProcess() method above, the correct code example should contain: public ResultSetInternalMethods postProcess(String sql, com.mysql.jdbc.Statement interceptedStatement, ResultSetInternalMethods originalResultSet, com.mysql.jdbc.Connection connection, int warningCount, boolean noIndexUsed, boolean noGoodIndexUsed, SQLException statementException) throws SQLException { if (sql.contains("t_original")) { return (ResultSetInternalMethods) interceptedStatement.executeQuery(sql.replace("t_original", "t_intercepted")); } return originalResultSet; }