diff options
Diffstat (limited to 'mysys/my_getopt.c')
-rw-r--r-- | mysys/my_getopt.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mysys/my_getopt.c b/mysys/my_getopt.c index 57b28d1fd8a..df52b753666 100644 --- a/mysys/my_getopt.c +++ b/mysys/my_getopt.c @@ -661,9 +661,13 @@ static char *check_struct_option(char *cur_arg, char *key_name) char *ptr, *end; DBUG_ENTER("check_struct_option"); - ptr= strcend(cur_arg + 1, '.'); /* Skip the first character */ end= strcend(cur_arg, '='); + /* In replicate_do_db* we can have connection name with .*/ + ptr= strcend(cur_arg + 1, '.'); /* Skip the first character */ + while (strcend(ptr + 1, '.') < end) + ptr= strcend(ptr + 1, '.'); + /* If the first dot is after an equal sign, then it is part of a variable value and the option is not a struct option. |