mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-12 06:00:14 +00:00
Merged fix-1022622-ptcd-case-sensitivity
This commit is contained in:
@@ -392,6 +392,39 @@ $c2 = new MySQLConfig(
|
||||
"Values are the same regardless of quoting"
|
||||
) or diag(Dumper($diff));
|
||||
}
|
||||
# #############################################################################
|
||||
# Case insensitivity
|
||||
# #############################################################################
|
||||
|
||||
$c1 = new MySQLConfig(
|
||||
result_set => [['binlog_format', 'MIXED']],
|
||||
format => 'option_file',
|
||||
);
|
||||
|
||||
$c2 = new MySQLConfig(
|
||||
result_set => [['binlog_format', 'mixed']],
|
||||
format => 'option_file',
|
||||
);
|
||||
|
||||
is_deeply(
|
||||
diff($c1, $c2),
|
||||
undef,
|
||||
"Case insensitivity is on by default"
|
||||
);
|
||||
|
||||
my $case_cc = MySQLConfigComparer->new( ignore_case => undef, );
|
||||
|
||||
is_deeply(
|
||||
$case_cc->diff(configs => [$c1, $c2]),
|
||||
{
|
||||
binlog_format => [
|
||||
'MIXED',
|
||||
'mixed'
|
||||
]
|
||||
},
|
||||
"..but can be turned off"
|
||||
);
|
||||
|
||||
# #############################################################################
|
||||
# Done.
|
||||
# #############################################################################
|
||||
|
Reference in New Issue
Block a user