PT-96 Made TableSyncer testeable

This commit is contained in:
Carlos Salguero
2017-03-10 09:32:34 -03:00
parent 9a5b0d4b95
commit 0118c93cc3

View File

@@ -222,8 +222,8 @@ sub __queue {
if ( $self->{replace} ) {
$action = $action eq 'DELETE' ? $action : 'REPLACE';
}
# The sort in this line is just to make it teasteable
push @{$self->{$action}}, [ $row, \sort(@$cols), $dbh ];
@$cols = sort(@$cols);
push @{$self->{$action}}, [ $row, $cols, $dbh ];
}
# Sub: process_rows