~percona-toolkit-dev/percona-toolkit/turn-off-v-c

« back to all changes in this revision

Viewing changes to bin/pt-table-sync

  • Committer: Brian Fraser
  • Date: 2012-08-24 22:54:05 UTC
  • mfrom: (362.5.1 percona-toolkit)
  • Revision ID: brian.fraser@percona.com-20120824225405-ko98zgqyieyiq01o
Merged fix-930693-changehandler-whitespace-text-cols

Show diffs side-by-side

added added

removed removed

Lines of Context:
3563
3563
            my $col = $_;
3564
3564
            if (    $self->{hex_blob}
3565
3565
                 && $tbl_struct->{type_for}->{$col} =~ m/blob|text|binary/ ) {
3566
 
               $col = "IF(`$col`='', '', CONCAT('0x', HEX(`$col`))) AS `$col`";
 
3566
               $col = "IF(BINARY(`$col`)='', '', CONCAT('0x', HEX(`$col`))) AS `$col`";
3567
3567
            }
3568
3568
            else {
3569
3569
               $col = "`$col`";