Merge lp:~percona-toolkit-dev/percona-toolkit/fix-osc-bug-897483-and-bug-925007.

This commit is contained in:
Daniel Nichter
2012-02-01 11:05:00 -07:00
2 changed files with 3 additions and 3 deletions

View File

@@ -4140,7 +4140,7 @@ sub main {
}
}
my $rename_fk_method = lc $o->get('update-foreign-keys-method');
my $rename_fk_method = lc($o->get('update-foreign-keys-method') || '');
if ( ($rename_fk_method || '') eq 'drop_old_table' ) {
$o->set('rename-tables', 0);
$o->set('drop-old-table', 0),
@@ -4325,7 +4325,7 @@ sub main {
if ( lc $child_tables eq 'auto_detect' ) {
msg("Auto-detecting child tables of $tbl");
@child_tables = get_child_tables(%plugin_args);
msg("Child tables of $tables{old_table}: "
msg("Child tables of $tables{old_tbl}: "
. (@child_tables ? join(', ', @child_tables) : "(none)"));
}
else {

View File

@@ -30,7 +30,7 @@ my $vp = new VersionParser();
my $q = new Quoter();
my $tp = new TableParser(Quoter => $q);
my $du = new MySQLDump();
my $chunker = new TableChunker(Quoter => $q, MySQLDump => $du);
my $chunker = new TableChunker(Quoter => $q, TableParser => $tp);
my $o = new OptionParser();
$o->get_specs("$trunk/bin/pt-online-schema-change");