Details
-
Bug
-
Status: Closed (View Workflow)
-
Trivial
-
Resolution: Fixed
-
3.1.19, 3.3.3
-
None
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
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.