Skipped another plan check. Skipped running explain when unnecessary. Added test. Fixed test that set check-plan off by default

This commit is contained in:
Frank Cizmich
2014-07-31 16:41:15 -03:00
parent 8feb0e3452
commit 2c7240bf49
5 changed files with 142 additions and 33 deletions

View File

@@ -124,7 +124,11 @@ like(
{
my $o = new OptionParser(file => "$trunk/bin/pt-table-checksum");
$o->get_specs();
$o->set('check-plan', 1); # check-plan is true by default
no warnings;
local *pt_online_schema_change::explain_statement = sub {
return { key => 'some_key' }
};