Details

    • New Feature
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 1.0.4
    • 1.0.5
    • Generic
    • None

    Description

      During the migration from the MySQL connector to the MariaDB one, I found an missing but important function.
      Here the description of it:
      https://dev.mysql.com/doc/connector-python/en/connector-python-api-cext-get-server-version.html

      Attachments

        Activity

          mariaTux Frank created issue -
          georg Georg Richter added a comment -

          What's wrong with using server_version?

          >>> import mariadb
          >>> conn=mariadb.connect()
          >>> conn.server_version;
          100600
          

          georg Georg Richter added a comment - What's wrong with using server_version? >>> import mariadb >>> conn = mariadb.connect() >>> conn.server_version; 100600
          mariaTux Frank added a comment -

          get_server_version will return an tuple and server_version only an integer.
          So you can simple access the needed part of the version number.
          get_server_version will return ("5", "5","1") for example for version 5.5.1

          mariaTux Frank added a comment - get_server_version will return an tuple and server_version only an integer. So you can simple access the needed part of the version number. get_server_version will return ("5", "5","1") for example for version 5.5.1
          georg Georg Richter made changes -
          Field Original Value New Value
          Fix Version/s 1.0.5 [ 25126 ]
          georg Georg Richter made changes -
          Status Open [ 1 ] Confirmed [ 10101 ]
          georg Georg Richter added a comment -

          Implemented in rev. a47d3e5d760d037e57082b663d7f3c9fd350a998

          Added connection attribute server_version_info and (for compatibility) get_server_version() method. Both return a tuple, describing the version number of connected server in following format: (MAJOR_VERSION, MINOR_VERSION, PATCH_VERSION)

          georg Georg Richter added a comment - Implemented in rev. a47d3e5d760d037e57082b663d7f3c9fd350a998 Added connection attribute server_version_info and (for compatibility) get_server_version() method. Both return a tuple, describing the version number of connected server in following format: (MAJOR_VERSION, MINOR_VERSION, PATCH_VERSION)
          georg Georg Richter made changes -
          issue.field.resolutiondate 2020-11-16 09:09:24.0 2020-11-16 09:09:24.554
          georg Georg Richter made changes -
          Resolution Fixed [ 1 ]
          Status Confirmed [ 10101 ] Closed [ 6 ]
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 115654 ] MariaDB v4 [ 135688 ]

          People

            georg Georg Richter
            mariaTux Frank
            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.