(FilterChain chain, StatementProxy statement, String sql)
| 142 | } |
| 143 | |
| 144 | @Override |
| 145 | public ResultSetProxy statement_executeQuery(FilterChain chain, StatementProxy statement, String sql) |
| 146 | throws SQLException { |
| 147 | Transaction transaction = Cat.newTransaction(CatConstants.TYPE_SQL, url); |
| 148 | Cat.logEvent("SQL.DbType", dbType); |
| 149 | Cat.logEvent("SQL.Database", url); |
| 150 | Cat.logEvent("SQL.sql", sql); |
| 151 | ResultSetProxy result; |
| 152 | try { |
| 153 | result = super.statement_executeQuery(chain, statement, sql); |
| 154 | transaction.setStatus(Message.SUCCESS); |
| 155 | } catch (SQLException e) { |
| 156 | Cat.logError(e); |
| 157 | transaction.setStatus(e); |
| 158 | throw e; |
| 159 | } finally { |
| 160 | transaction.complete(); |
| 161 | } |
| 162 | |
| 163 | return result; |
| 164 | } |
| 165 | |
| 166 | @Override |
| 167 | public int statement_executeUpdate(FilterChain chain, StatementProxy statement, String sql) throws SQLException { |
nothing calls this directly
no test coverage detected