~percona-toolkit-dev/percona-toolkit/fix-empty-table-bug-987393

« back to all changes in this revision

Viewing changes to bin/pt-table-checksum

Merge fix-undef-arrayref-bug-995274.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3999
3999
   PTDEBUG && _d($sql);
4000
4000
   my $expl = $cxn->dbh()->selectrow_hashref($sql);
4001
4001
   PTDEBUG && _d(Dumper($expl));
4002
 
   return ($expl->{rows} || 0), $expl->{key};
 
4002
   my $mysql_index = $expl->{key} || '';
 
4003
   if ( $mysql_index ne 'PRIMARY' ) {
 
4004
      $mysql_index = lc($mysql_index);
 
4005
   }
 
4006
   return ($expl->{rows} || 0), $mysql_index;
4003
4007
}
4004
4008
 
4005
4009
sub _prepare_sths {