Uploaded image for project: 'MariaDB Connector/C'
  1. MariaDB Connector/C
  2. CONC-770

Add new options MARIADB_OPT_CONNECT_ATTR_*

    XMLWordPrintable

Details

    • Task
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • None
    • 3.4
    • API
    • None

    Description

      The current implementation for connection attributes requires to call mysql_optionsv for each connection attributes instead of passing all connection attributes at once.

      Since mysql_optionsv is a variadic function, the last passed parameter always needs to be NULL.

      New options:

      • MARIADB_OPT_CONNECT_ATTR_ADD adds one or more connection attributes
      • MARIADB_OPT_CONNECT_ATTR_DEL deletes one or more connection attributes
      • MARIADB_OPT_CONNECT_ATTR_CLEAR deletes all connection attributes

      Example:

      rc= mysql_optionsv(mysql, MARIADB_OPT_CONNECT_ATTR_ADD,
                         "_client_name", "libmariadb",
                         "_client_version", MARIADB_PACKAGE_VERSION,
                         "_os", MARIADB_SYSTEM_TYPE,
                         "_platform", MARIADB_MACHINE_TYPE,
                         NULL);
      

      Attachments

        Activity

          People

            georg Georg Richter
            georg Georg Richter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.