Details

    • Task
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 10.2.0
    • OTHER
    • None
    • 10.2.0-1

    Description

      The official MySQL server returns version string like this:
      5.5.25-log
      While (latest stable) MariaDB:
      10.0.17-MariaDB-1~wheezy-log

      Some old and crappy CMS installations break with the MariaDB string above, like Joomla til API17:

        public function hasUTF()
        {
          $verParts = explode('.', $this->getVersion());
          return ($verParts[0] == 5 || ($verParts[0] == 4 && $verParts[1] == 1 && (int)$verParts[2] >= 2));
        }

      MariaDB is told to be a drop-in replacement for MySQL. In this case it is unfortunately not true. Patching the already installed webapps is usually not an option for administrators.

      For this reason I recommend to add a new configuration option, something like this into mysqld section of the config file:
      fake_version=5.5.25-log

      With this option set, MariaDB could return the faked version string.

      Attachments

        Issue Links

          Activity

            We can simply make @@version writable (from the command-line, not run-time)

            serg Sergei Golubchik added a comment - We can simply make @@version writable (from the command-line, not run-time)

            serg, please review patch for this task.

            svoj Sergey Vojtovich added a comment - serg , please review patch for this task.

            serg, please disregard first patch, it's incorrect. Will send updated version ASAP.

            svoj Sergey Vojtovich added a comment - serg , please disregard first patch, it's incorrect. Will send updated version ASAP.

            serg, patch updated.

            svoj Sergey Vojtovich added a comment - serg , patch updated.

            serg, test case extended as requested.

            svoj Sergey Vojtovich added a comment - serg , test case extended as requested.

            serg, test case updated.

            svoj Sergey Vojtovich added a comment - serg , test case updated.
            serg Sergei Golubchik added a comment - Documentation: https://mariadb.com/kb/en/server-system-variables/#version

            People

              svoj Sergey Vojtovich
              imre.rad Imre Rad
              Votes:
              0 Vote for this issue
              Watchers:
              7 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.