WL#4350 Options in my.cnf style config file should not start with --
This commit is contained in:
parent
ee1c00d97d
commit
c11e919980
@ -27,6 +27,16 @@ sub value {
|
|||||||
return $self->{value};
|
return $self->{value};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sub option {
|
||||||
|
my ($self)= @_;
|
||||||
|
my $name= $self->{name};
|
||||||
|
my $value= $self->{value};
|
||||||
|
|
||||||
|
my $opt= $name;
|
||||||
|
$opt= "$name=$value" if ($value);
|
||||||
|
$opt= "--$opt" unless ($opt =~ /^--/);
|
||||||
|
return $opt;
|
||||||
|
}
|
||||||
|
|
||||||
package My::Config::Group;
|
package My::Config::Group;
|
||||||
|
|
||||||
|
@ -397,7 +397,7 @@ sub collect_one_suite($)
|
|||||||
my $comb= {};
|
my $comb= {};
|
||||||
$comb->{name}= $group->name();
|
$comb->{name}= $group->name();
|
||||||
foreach my $option ( $group->options() ) {
|
foreach my $option ( $group->options() ) {
|
||||||
push(@{$comb->{comb_opt}}, $option->name()."=".$option->value());
|
push(@{$comb->{comb_opt}}, $option->option());
|
||||||
}
|
}
|
||||||
push(@combinations, $comb);
|
push(@combinations, $comb);
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
[row]
|
[row]
|
||||||
--binlog-format=row
|
binlog-format=row
|
||||||
|
|
||||||
[stmt]
|
[stmt]
|
||||||
--binlog-format=statement
|
binlog-format=statement
|
||||||
|
|
||||||
[mix]
|
[mix]
|
||||||
--binlog-format=mixed
|
binlog-format=mixed
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
[row]
|
[row]
|
||||||
--binlog-format=row
|
binlog-format=row
|
||||||
|
|
||||||
[stmt]
|
[stmt]
|
||||||
--binlog-format=statement
|
binlog-format=statement
|
||||||
|
|
||||||
[mix]
|
[mix]
|
||||||
--binlog-format=mixed
|
binlog-format=mixed
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
[row]
|
[row]
|
||||||
--binlog-format=row
|
binlog-format=row
|
||||||
|
|
||||||
[stmt]
|
[stmt]
|
||||||
--binlog-format=statement
|
binlog-format=statement
|
||||||
|
|
||||||
[mix]
|
[mix]
|
||||||
--binlog-format=mixed
|
binlog-format=mixed
|
||||||
|
Loading…
x
Reference in New Issue
Block a user