[CONC-415] Option prefixes not supported in my.cnf Created: 2019-05-31  Updated: 2019-06-01

Status: Open
Project: MariaDB Connector/C
Component/s: None
Affects Version/s: 3.0.8
Fix Version/s: None

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

Issue Links:
Blocks
blocks MDEV-19035 Make MariaDB Connector/C handle my.cn... Open
Relates
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-402 Replace underscores with dashes in co... Closed
relates to CONC-404 Add option that corresponds to --defa... Open
relates to ODBC-229 Add parameters that correspond to MYS... Closed
relates to CONC-416 On Windows, C/C looks for first my.cn... Closed

 Description   

When the server reads options from my.cnf, it supports several option prefixes:

  • autoset - Sets the option value automatically. Only supported for certain options. Available in MariaDB 10.1.7 and later.
  • disable - For all boolean options, disables the setting (equivalent to setting it to 0). Same as --skip.
  • enable - For all boolean options, enables the setting (equivalent to setting it to 1).
  • loose - Don't produce an error if the option doesn't exist.
  • maximum - Sets the maximum value for the option.
  • skip - For all boolean options, disables the setting (equivalent to setting it to 0). Same as --disable.

https://mariadb.com/kb/en/library/configuring-mariadb-with-option-files/#option-prefixes

https://mariadb.com/kb/en/library/mysqld-options/#option-prefixes

MariaDB Connector/C doesn't support these option prefixes yet. We can see that when it reads an option from my.cnf or other option/configuration files, it doesn't check for option prefixes:

https://github.com/MariaDB/mariadb-connector-c/blob/2fdaf1d4474edcdbd6724851be3f8d7573f07ce1/libmariadb/mariadb_lib.c#L699


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