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

          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 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)

          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.