Stop executing the current statement.
()
| 174 | |
| 175 | /** Stop executing the current statement. */ |
| 176 | public synchronized void cancelStatement() { |
| 177 | try { |
| 178 | if (this.currStatement != null) { |
| 179 | this.currStatement.cancel(); |
| 180 | } |
| 181 | } catch (SQLException e) { |
| 182 | LOG.error("Failed to cancel statement: {}", e.getMessage()); |
| 183 | } |
| 184 | } |
| 185 | |
| 186 | @Override |
| 187 | public final void run() { |
no test coverage detected