mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-09 18:30:16 +00:00
PT-96 Fixes for ChangeHandler & TableSync
This commit is contained in:
@@ -402,7 +402,6 @@ sub make_row {
|
|||||||
my $q = $self->{Quoter};
|
my $q = $self->{Quoter};
|
||||||
my $type_for = $self->{tbl_struct}->{type_for};
|
my $type_for = $self->{tbl_struct}->{type_for};
|
||||||
|
|
||||||
# sorts here are just to make this sub testeable
|
|
||||||
return "$verb INTO $self->{dst_db_tbl}("
|
return "$verb INTO $self->{dst_db_tbl}("
|
||||||
. join(', ', map { $q->quote($_) } @cols)
|
. join(', ', map { $q->quote($_) } @cols)
|
||||||
. ') VALUES ('
|
. ') VALUES ('
|
||||||
@@ -417,6 +416,7 @@ sub make_row {
|
|||||||
)
|
)
|
||||||
} @cols)
|
} @cols)
|
||||||
. ')';
|
. ')';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Sub: make_where_clause
|
# Sub: make_where_clause
|
||||||
@@ -483,7 +483,7 @@ sub sort_cols {
|
|||||||
1;
|
1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
keys %$row;
|
sort keys %$row;
|
||||||
push @cols, @not_in_tbl if @not_in_tbl;
|
push @cols, @not_in_tbl if @not_in_tbl;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Reference in New Issue
Block a user