Skip to content
This repository was archived by the owner on Apr 9, 2021. It is now read-only.

Commit f96bbaa

Browse files
committed
Fixed error in --custom_mysqld handling
1 parent c7cda28 commit f96bbaa

File tree

6 files changed

+14
-9
lines changed

6 files changed

+14
-9
lines changed

Changelog

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
3.2.10 03-May-2017
2+
- Fixed error in --custom_mysqld handling
13
3.2.09 01-May-2017
24
- Merged Guriandoro's change to check port numbers in change_ports
35
- Added change directory command to change_ports

bin/low_level_make_sandbox

-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ else
161161
die "# Can't get MySQL version from mysql_config\n";
162162
}
163163

164-
$msb->{options}{custom_mysqld} = '';
165164
if ($msb->{options}{expose_dd_tables})
166165
{
167166
my $mysql_version = $msb->{options}{detected_mysql_version};

lib/MySQL/Sandbox.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ our @EXPORT_OK= qw( is_port_open
3030
split_version
3131
) ;
3232

33-
our $VERSION=q{3.2.09};
33+
our $VERSION=q{3.2.10};
3434
our $DEBUG;
3535

3636
BEGIN {

lib/MySQL/Sandbox/Recipes.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package MySQL::Sandbox::Recipes;
33
use strict;
44
use warnings;
55

6-
our $VERSION=q{3.2.09};
6+
our $VERSION=q{3.2.10};
77

88
1;
99
__END__

lib/MySQL/Sandbox/Scripts.pm

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ our @EXPORT_OK = qw(
1717
);
1818
our @EXPORT = @EXPORT_OK;
1919

20-
our $VERSION=q{3.2.09};
20+
our $VERSION=q{3.2.10};
2121

2222
our @MANIFEST = (
2323
'clear.sh',
@@ -448,8 +448,8 @@ my %parse_options_low_level_make_sandbox = (
448448
]
449449
},
450450
custom_mysqld => {
451-
value => $ENV{'CUSTOM_MYSQLD'},
452-
parse => 'custom_mysqld',
451+
value => $ENV{'CUSTOM_MYSQLD'} || '' ,
452+
parse => 'custom_mysqld=s',
453453
so => 198,
454454
export => 1,
455455
help => [

t/dd_expose.sb.pl

+7-3
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ sub test_run
1313
{
1414
my ($tests) = @_;
1515
ok_exec({
16-
command => "make_sandbox $TEST_VERSION -- --no_confirm --sandbox_directory=$install_dir --expose_dd_tables "
17-
. "--sandbox_port=$install_port ",
16+
command => "make_sandbox $TEST_VERSION -- "
17+
. "--no_confirm --sandbox_directory=$install_dir"
18+
. " --expose_dd_tables "
19+
. " --sandbox_port=$install_port ",
1820
expected => 'sandbox server started' ,
1921
msg => 'sandbox server started',
2022
});
@@ -52,7 +54,9 @@ sub test_run
5254
msg => 'table "mysql.tables" is readable'
5355
},
5456
{
55-
query => "select count(*) from mysql.tables where name='dd_hidden_tables' and schema_id = (select id from mysql.schemata where name='sys')",
57+
query => "select count(*) from mysql.tables "
58+
. " where name='dd_hidden_tables' "
59+
. " and schema_id = (select id from mysql.schemata where name='sys')",
5660
expected => '1',
5761
msg => 'table "sys.dd_hidden_tables" exists'
5862
}

0 commit comments

Comments
 (0)