[CONJ-691] Query execution was interrupted - Should return InterruptedException Created: 2019-03-06 Updated: 2019-03-08 Resolved: 2019-03-08 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | JDBC 4.2 compatibility |
| Affects Version/s: | 2.4.0 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Minor |
| Reporter: | Pavel Cibulka | Assignee: | Diego Dupin |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Description |
|
"Query execution was interrupted" returns java.sql.SQLTransientException. It should return InterruptedException makes more sense. |
| Comments |
| Comment by Pavel Cibulka [ 2019-03-07 ] |
|
Please close this bug. When Statement.cancel() is called Mariadb Connector/J produce SQLTransientException. Mysql Connector/J seems to produce no exception. |
| Comment by Diego Dupin [ 2019-03-08 ] |
|
closing since requested: this seems normal exception : A long query that is cancelled must throw an SQLException not an Exception. |