1
0
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:
Georg Richter
2019-03-26 16:48:21 +01:00
parent 1285dc72a0
commit a8bec1c68a
2 changed files with 46 additions and 0 deletions

View File

@@ -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++)
{