Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-95071

mysql client version detection broken with MariaDB 10.6

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.15.6, 6.2.0 Beta3
    • 5.15.2, 6.1.2
    • SQL Support
    • None
    • Linux/X11
    • 211369133cf40b2f522caaff259c19069ed23ca4 c11a4d34321e2d615c22aa068dbb185656e9d6c9 (qt/qtbase/6.2) dde4061f37071b265162ab986d7dc1d3726390a1 (qt/tqtc-qtbase/5.15)

    Description

      MariaDB 10.6 changed the mysql_get_client_version output to return the library version (30200 as of 10.6.3) instead of the server version

      https://github.com/mariadb-corporation/mariadb-connector-c/commit/a37b7c3965706f9a062baaba0c494dd6efb2c306

      This breaks Qt's version detection in

      https://code.qt.io/cgit/qt/qtbase.git/tree/src/plugins/sqldrivers/mysql/qsql_mysql.cpp#n1279

      (in 5.15 there's an additional mysql_get_client_version use)

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              thiago Thiago Macieira
              arojas Antonio Rojas
              Votes:
              1 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews