Updated MySQLConfigComparer.pm so now it can honor case insensitivity. cnf1 and cnf2 are test files.

This commit is contained in:
nilnandan
2025-09-08 14:12:12 +00:00
parent 6588510632
commit 4e190a34ef
4 changed files with 36 additions and 16 deletions

View File

@@ -3633,6 +3633,7 @@ sub diff {
next CONFIG if $val0 == $valN;
}
else {
next CONFIG if $ignore_case
? lc($val0) eq lc($valN)
: $val0 eq $valN;
@@ -3695,7 +3696,7 @@ sub _normalize_value {
my ($val, $is_dir, $base_path) = @args{qw(value is_directory base_path)};
$val = defined $val ? $val : '';
$val = $alt_val_for{$val} if exists $alt_val_for{$val};
$val = $alt_val_for{lc($val)} if exists $alt_val_for{lc($val)};
if ( $val ) {
if ( $is_dir ) {

View File

@@ -202,6 +202,7 @@ sub diff {
next CONFIG if $val0 == $valN;
}
else {
next CONFIG if $ignore_case
? lc($val0) eq lc($valN)
: $val0 eq $valN;
@@ -293,7 +294,7 @@ sub _normalize_value {
my ($val, $is_dir, $base_path) = @args{qw(value is_directory base_path)};
$val = defined $val ? $val : '';
$val = $alt_val_for{$val} if exists $alt_val_for{$val};
$val = $alt_val_for{lc($val)} if exists $alt_val_for{lc($val)};
if ( $val ) {
if ( $is_dir ) {

View File

@@ -0,0 +1,9 @@
[mysqld]
log_bin=1
gtid_mode=on
read_only=off
autocommit=yes
autocommit=no
binlog_format=mixed
skip_name_resolve=true
skip_name_resolve=false

View File

@@ -0,0 +1,9 @@
[mysqld]
LOGBIN=1
gtid_mode=ON
read_only=OFF
autocommit=YES
autocommit=NO
binlog_format=MIXED
skip_name_resolve=TRUE
skip_name_resolve=FALSE