[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
java.​lang.InterruptedException.

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.

Generated at Thu Feb 08 03:17:36 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.