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

Commit

Permalink
Fixed error in --custom_mysqld handling
Browse files Browse the repository at this point in the history
  • Loading branch information
datacharmer committed May 3, 2017
1 parent c7cda28 commit f96bbaa
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 9 deletions.
2 changes: 2 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
3.2.10 03-May-2017
- Fixed error in --custom_mysqld handling
3.2.09 01-May-2017
- Merged Guriandoro's change to check port numbers in change_ports
- Added change directory command to change_ports
Expand Down
1 change: 0 additions & 1 deletion bin/low_level_make_sandbox
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ else
die "# Can't get MySQL version from mysql_config\n";
}

$msb->{options}{custom_mysqld} = '';
if ($msb->{options}{expose_dd_tables})
{
my $mysql_version = $msb->{options}{detected_mysql_version};
Expand Down
2 changes: 1 addition & 1 deletion lib/MySQL/Sandbox.pm
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ our @EXPORT_OK= qw( is_port_open
split_version
) ;

our $VERSION=q{3.2.09};
our $VERSION=q{3.2.10};
our $DEBUG;

BEGIN {
Expand Down
2 changes: 1 addition & 1 deletion lib/MySQL/Sandbox/Recipes.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package MySQL::Sandbox::Recipes;
use strict;
use warnings;

our $VERSION=q{3.2.09};
our $VERSION=q{3.2.10};

1;
__END__
Expand Down
6 changes: 3 additions & 3 deletions lib/MySQL/Sandbox/Scripts.pm
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ our @EXPORT_OK = qw(
);
our @EXPORT = @EXPORT_OK;

our $VERSION=q{3.2.09};
our $VERSION=q{3.2.10};

our @MANIFEST = (
'clear.sh',
Expand Down Expand Up @@ -448,8 +448,8 @@ my %parse_options_low_level_make_sandbox = (
]
},
custom_mysqld => {
value => $ENV{'CUSTOM_MYSQLD'},
parse => 'custom_mysqld',
value => $ENV{'CUSTOM_MYSQLD'} || '' ,
parse => 'custom_mysqld=s',
so => 198,
export => 1,
help => [
Expand Down
10 changes: 7 additions & 3 deletions t/dd_expose.sb.pl
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ sub test_run
{
my ($tests) = @_;
ok_exec({
command => "make_sandbox $TEST_VERSION -- --no_confirm --sandbox_directory=$install_dir --expose_dd_tables "
. "--sandbox_port=$install_port ",
command => "make_sandbox $TEST_VERSION -- "
. "--no_confirm --sandbox_directory=$install_dir"
. " --expose_dd_tables "
. " --sandbox_port=$install_port ",
expected => 'sandbox server started' ,
msg => 'sandbox server started',
});
Expand Down Expand Up @@ -52,7 +54,9 @@ sub test_run
msg => 'table "mysql.tables" is readable'
},
{
query => "select count(*) from mysql.tables where name='dd_hidden_tables' and schema_id = (select id from mysql.schemata where name='sys')",
query => "select count(*) from mysql.tables "
. " where name='dd_hidden_tables' "
. " and schema_id = (select id from mysql.schemata where name='sys')",
expected => '1',
msg => 'table "sys.dd_hidden_tables" exists'
}
Expand Down

0 comments on commit f96bbaa

Please sign in to comment.