[CONC-402] Replace underscores with dashes in conf_key values in mariadb_defaults array Created: 2019-04-06  Updated: 2019-06-01  Resolved: 2019-04-19

Status: Closed
Project: MariaDB Connector/C
Component/s: None
Affects Version/s: 3.1.1
Fix Version/s: 3.1.1

Type: Task Priority: Major
Reporter: Geoff Montee (Inactive) Assignee: Georg Richter
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to CONC-404 Add option that corresponds to --defa... Open
relates to CONC-327 !include/!includedir not parsed in my... Closed
relates to CONC-394 Some TLS-related options are not sett... Closed
relates to CONC-395 Dashes and underscores are not interc... Closed
relates to CONC-396 !includedir in my.cnf does not includ... Open
relates to CONC-399 Add option that corresponds to --defa... Open
relates to CONC-415 Option prefixes not supported in my.cnf Open
relates to CONC-416 On Windows, C/C looks for first my.cn... Closed
relates to ODBC-229 Add parameters that correspond to MYS... Closed

 Description   

With the fix for CONC-395, the mariadb_set_conf_option function replaces underscores ('') with dashes ('-') in configuration options prior to comparing the value to the conf_key values in the mariadb_defaults array.:

https://github.com/MariaDB/mariadb-connector-c/blob/a8bec1c68acf7a0d47c4c1755bbda829bf944120/libmariadb/mariadb_lib.c#L703

This most likely means that the keys that have underscores in their definition need to be converted to dashes. It looks like these are:

  • tls_version

https://github.com/MariaDB/mariadb-connector-c/blob/a8bec1c68acf7a0d47c4c1755bbda829bf944120/libmariadb/mariadb_lib.c#L648

  • server_public_key

https://github.com/MariaDB/mariadb-connector-c/blob/a8bec1c68acf7a0d47c4c1755bbda829bf944120/libmariadb/mariadb_lib.c#L649


Generated at Thu Feb 08 03:05:04 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.