mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-26 05:58:16 +00:00
Modified (de)serialize_list to handle undefs and empty string elements better.
This commit is contained in:
@@ -175,7 +175,11 @@ SKIP: {
|
||||
$sth->execute($test_index, $ser);
|
||||
$selsth->execute($test_index);
|
||||
|
||||
my $flat_string = "[" . join("][", @{$serialize_tests[$test_index]}) . "]";
|
||||
my $flat_string = "["
|
||||
. join( "][",
|
||||
map { defined($_) ? $_ : '' } @{$serialize_tests[$test_index]}
|
||||
)
|
||||
. "]";
|
||||
$flat_string =~ s/\n/\\n/g;
|
||||
|
||||
is_deeply(
|
||||
|
Reference in New Issue
Block a user