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

Client error code 2059 is listed twice in ma_errmsg.c

Details

    Description

      MariaDB Connector/C lists client error code 2059 twice in ma_errmsg.c

      /* 2059 */  "Can't connect twice. Already connected",
      /* 2058 */  "Plugin %s could not be loaded: %s",
      /* 2059 */  "An attribute with same name already exists",
      

      https://github.com/mariadb-corporation/mariadb-connector-c/blob/v3.3.3/libmariadb/ma_errmsg.c#L88

      https://github.com/mariadb-corporation/mariadb-connector-c/blob/v3.2.7/libmariadb/ma_errmsg.c#L88

      https://github.com/mariadb-corporation/mariadb-connector-c/blob/v3.1.19/libmariadb/ma_errmsg.c#L143

      Attachments

        Activity

          Since the numbers are just comments, I'm assuming that the actual numbers auto-increment by 1 for every string found in the list. As such, my script outputs these warnings:

          Expected 2058 but got 2059 for error: Can't connect twice. Already connected
          Expected 2059 but got 2058 for error: Plugin %s could not be loaded: %s
          Expected 2060 but got 2059 for error: An attribute with same name already exists
          Expected 2061 but got 2060 for error: Plugin doesn't support this function
          

          ... and those errors are assigned the "expected" number, not the comment number.

          WayneD Wayne Davison (Inactive) added a comment - Since the numbers are just comments, I'm assuming that the actual numbers auto-increment by 1 for every string found in the list. As such, my script outputs these warnings: Expected 2058 but got 2059 for error: Can't connect twice. Already connected Expected 2059 but got 2058 for error: Plugin %s could not be loaded: %s Expected 2060 but got 2059 for error: An attribute with same name already exists Expected 2061 but got 2060 for error: Plugin doesn't support this function ... and those errors are assigned the "expected" number, not the comment number.

          People

            georg Georg Richter
            GeoffMontee Geoff Montee (Inactive)
            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.