Uploaded image for project: 'MariaDB Connector/Python'
  1. MariaDB Connector/Python
  2. CONPY-78

Check for server capabilities instead of version

    XMLWordPrintable

Details

    Description

      To check if the server supports bulk operations we need to check the extended capability flag instead of server version number:

      mariadb_get_infov(self->stmt->mysql, 
                            MARIADB_CONNECTION_EXTENDED_SERVER_CAPABILITIES,
                            &extended_server_capabilities);
        if (!(extended_server_capabilities & (MARIADB_CLIENT_STMT_BULK_OPERATIONS >> 32)))
        {
            ...
        }
      
      

      Attachments

        Activity

          People

            georg Georg Richter
            georg Georg Richter
            Votes:
            0 Vote for this issue
            Watchers:
            1 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.