[CONC-399] Add option that corresponds to --defaults-extra-file MariaDB command-line option Created: 2019-03-24  Updated: 2022-07-01

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

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-395 Dashes and underscores are not interc... Closed
relates to CONC-396 !includedir in my.cnf does not includ... 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-415 Option prefixes not supported in my.cnf Open
relates to CONC-416 On Windows, C/C looks for first my.cn... Closed

 Description   

When a non-NULL value is provided, the behavior of the MYSQL_READ_DEFAULT_FILE option roughly corresponds to the behavior of the --defaults-file MariaDB command-line option :

https://github.com/MariaDB/mariadb-connector-c/blob/1285dc72a043f09d9a51abcfc3a4fbfb5192067e/include/mysql.h#L169

Should MariaDB Connector/C also have an option that roughly corresponds to the behavior of the --defaults-extra-file MariaDB command-line option? This command-line option essentially adds an "extra" option file that is parsed after all others.

https://mariadb.com/kb/en/library/configuring-mariadb-with-option-files/#custom-option-file-locations

It may be useful to have an option like this if we ever want MariaDB Connector/C to parse my.cnf and other option/configuration files for client tools. e.g. see MDEV-19035


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