PT-96 Fixes for ChangeHandler & TableSync

This commit is contained in:
Carlos Salguero
2017-03-10 14:51:43 -03:00
parent e414820c7f
commit 3b6f1c3aff

View File

@@ -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 {