[CONJ-181] JdbcURL should throw SQLException and not IllegalArgumentException Created: 2015-08-14  Updated: 2017-01-03  Resolved: 2017-01-03

Status: Closed
Project: MariaDB Connector/J
Component/s: Other
Affects Version/s: 1.2.0
Fix Version/s: 1.2.2

Type: Bug Priority: Major
Reporter: Geoffrey Rutherford Assignee: Diego Dupin
Resolution: Fixed Votes: 0
Labels: None
Environment:

JDBC



 Description   

JdbcURL throws an IllegalArgumentException if the passed URL isn't for MariaDB but the JDBC driver manager class expects to catch an SQLException. If the MariaDB driver is in the list before the target driver for a URL then the application fails. This is a consequence of the probing mechanism implemented by JDBC of registered drivers. JDBC drivers should always throw derivatives of SQLException.



 Comments   
Comment by Diego Dupin [ 2017-01-03 ]

has been fixed in 1.2.2

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