Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-1192

Support the MariaDB JDBC driver

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Jena 3.1.0
    • Jena 3.1.1
    • SDB
    • None

    Description

      The MariaDB JDBC is compatible with the MySQL JDBC driver. It has different license; the MariaDb JDBC driver is LGPL and the MySQL JDBC driver is GPL with a special FOSS exception.

      In addition, the MariaDB JDBC driver response to "jdbc:mysql:..." URLs.

      Supporting the driver has two parts:

      When MariaDB is explicitly chosen in "sdb:sdbType", we have a registration for "MariaDB" to map to "org.mariadb.jdbc.Driver" and ideally build the right JDBC URL for the case when the URL is not explicitly provided.

      The other part is for a setup is for MySQL but only the MariaDB JDBC driver is on the classpath. We can treat this as a special-case during the loading of the JDBC driver so if looking for the MySQL classname ""com.mysql.jdbc.Driver" fails, the code also looks for "org.mariadb.jdbc.Driver".

      At no point is Jena (source or binary) shipping either JDBC driver.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            andy Andy Seaborne
            andy Andy Seaborne
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment