Uploaded image for project: 'MariaDB Connector/J'
  1. MariaDB Connector/J
  2. CONJ-181

JdbcURL should throw SQLException and not IllegalArgumentException

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 1.2.0
    • 1.2.2
    • Other
    • None
    • 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.

      Attachments

        Activity

          People

            diego dupin Diego Dupin
            GeoffreyR Geoffrey Rutherford
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.