mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-07 21:09:14 +00:00
Lowercase index from EXPLAIN (unless it's PRIMARY) to match lowercase ident names from TableParser::parser().
This commit is contained in:
@@ -3993,7 +3993,11 @@ sub get_row_estimate {
|
||||
PTDEBUG && _d($sql);
|
||||
my $expl = $cxn->dbh()->selectrow_hashref($sql);
|
||||
PTDEBUG && _d(Dumper($expl));
|
||||
return ($expl->{rows} || 0), $expl->{key};
|
||||
my $mysql_index = $expl->{key} || '';
|
||||
if ( $mysql_index ne 'PRIMARY' ) {
|
||||
$mysql_index = lc($mysql_index);
|
||||
}
|
||||
return ($expl->{rows} || 0), $mysql_index;
|
||||
}
|
||||
|
||||
sub _prepare_sths {
|
||||
|
Reference in New Issue
Block a user