Merged fix-1022622-ptcd-case-sensitivity

This commit is contained in:
Brian Fraser
2012-12-11 11:45:29 -03:00
4 changed files with 92 additions and 6 deletions

View File

@@ -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.
# #############################################################################