Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
3.0.8
-
None
-
None
Description
When the server parses my.cnf or other option/configuration files, dashes and underscores are interchangeable in options:
Dashes (-) and underscores (_) in options are interchangeable.
https://mariadb.com/kb/en/library/configuring-mariadb-with-option-files/#option-file-syntax
This is not the case with MariaDB Connector/C:
Unlike with the server, dashes (-) and underscores (_) in options are not interchangeable for MariaDB Connector/C. Options must be specified exactly as they are defined.
I think it would be pretty easy to fix this.
One potential fix would be to modify the _mariadb_set_conf_option function, so that it makes a copy of the config_option C-string argument and replaces all underscores (_) with dashes (-) before doing the strcmp:
Attachments
Issue Links
- blocks
-
MDEV-19035 Make MariaDB Connector/C handle my.cnf parsing for clients
- Open
- relates to
-
CONC-327 !include/!includedir not parsed in my.cnf
- Closed
-
CONC-396 !includedir in my.cnf does not include all .cnf and .ini files in the directory
- Open
-
CONC-402 Replace underscores with dashes in conf_key values in mariadb_defaults array
- Closed
-
CONC-404 Add option that corresponds to --defaults-group-suffix MariaDB command-line option
- Open
-
CONC-394 Some TLS-related options are not settable in my.cnf
- Closed
-
CONC-399 Add option that corresponds to --defaults-extra-file MariaDB command-line option
- Open
-
CONC-415 Option prefixes not supported in my.cnf
- Open
-
CONC-416 On Windows, C/C looks for first my.cnf/my.ini in GetSystemDirectory() instead of GetSystemWindowsDirectory()
- Closed
-
ODBC-229 Add parameters that correspond to MYSQL_READ_DEFAULT_FILE and MYSQL_READ_DEFAULT_GROUP options from MariaDB Connector/C
- Closed