mirror of
https://github.com/percona/percona-toolkit.git
synced 2026-05-16 01:07:12 +08:00
PR-989 - Fix script crashing with precedence error
- Fixed typo in the tool code - Added more diagnostic information into test for pt-1919
This commit is contained in:
@@ -10630,7 +10630,7 @@ sub main {
|
||||
$plugin->after_copy_rows();
|
||||
}
|
||||
if ( $o->get('preserve-triggers') ) {
|
||||
if ( !$o->get('swap-tables') && $o->get('drop-new-table') && $o->get('alter-foreign-keys-method') ne "drop-swap" ) {
|
||||
if ( !$o->get('swap-tables') && $o->get('drop-new-table') && ( $o->get('alter-foreign-keys-method') ne "drop_swap" ) ) {
|
||||
print ts("Skipping triggers creation since --no-swap-tables was specified along with --drop-new-table\n");
|
||||
} else {
|
||||
print ts("Adding original triggers to new table.\n");
|
||||
|
||||
@@ -312,7 +312,7 @@ sub test_alter_table {
|
||||
$orig_triggers,
|
||||
$new_triggers,
|
||||
'Triggers should remain in place',
|
||||
);
|
||||
) or diag($output);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user