Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-17912

getDatabaseProductName() return DatabaseProduct.UNKNOWN for MariaDB depending on the configuration

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 11.10.10
    • Fix Version/s: 12.6.3, 12.9-rc-1, 11.10.11
    • Component/s: Old Core
    • Labels:
      None
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      A workaround is to add "useMysqlMetadata=true" in the jdbc URL. Another possibility is to use the mysql connector which works fine with MariaDB.

      Since MySQL and MariaDB are the same thing from XWiki point of view (for now at least) we should return DatabaseProduct.MySQL for now so that it covers any existing code which have a if on MySQL.

        Attachments

          Activity

            People

            Assignee:
            tmortagne Thomas Mortagne
            Reporter:
            tmortagne Thomas Mortagne
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response: