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

MariaDB 10.3 on Azure is recognized as MySQL 5.6.47

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Not a Bug
    • 3.2.0, 3.1.4
    • N/A
    • metadata
    • None

    Description

      I'm using the Azure Database for MariaDB service which runs a MariaDB 10.3 instance.

      The problem is that the MariaDB Connector detects the DB as MySQL 5.6.47.0
      You can see in the screenshot that 'mariadDBServer' is false.

      The getDatabaseProductName method will return "MySQL" instead of "MariaDB".
      But maybe most importantly for me, the reported version is also 5.6.47.

      Hibernate 6 will then read such metadata and emit the following warning:

      The 5.6.47 version for [org.hibernate.dialect.MariaDBDialect] is no longer supported, hence certain features may not work properly. The minimum supported version is 10.3.0. Check the community dialects project for available legacy versions.
      

      You can see in the picture that 5.6.47 is compared with 10.3 (the minimum) and found to be lower:

      The fix would be MariaDB Connector recognizing the DB for what it is: MariaDB 10.3.

      Tested with MariaDB Connector 3.1.4 and 3.2.0.

      Attachments

        Activity

          People

            diego dupin Diego Dupin
            lorenzo.peri Lorenzo Peri
            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.