You've already forked mariadb-connector-c
mirror of
https://github.com/mariadb-corporation/mariadb-connector-c.git
synced 2025-08-07 02:42:49 +03:00
CONC-395: Dashes and underscores are not interchangeable in options in my.cnf
This commit is contained in:
@@ -698,6 +698,11 @@ my_bool _mariadb_set_conf_option(MYSQL *mysql, const char *config_option, const
|
||||
if (config_option)
|
||||
{
|
||||
int i;
|
||||
char *c;
|
||||
|
||||
/* CONC-395: replace underscore "_" by dash "-" */
|
||||
while ((c= strchr(config_option, '_')))
|
||||
*c= '-';
|
||||
|
||||
for (i=0; mariadb_defaults[i].conf_key; i++)
|
||||
{
|
||||
|
Reference in New Issue
Block a user