diff --git a/bin/pt-archiver b/bin/pt-archiver index 3bade8ee..ffad2fe3 100755 --- a/bin/pt-archiver +++ b/bin/pt-archiver @@ -2408,6 +2408,7 @@ sub BUILDARGS { if ( blessed($_[0]) && $_[0]->can("selectrow_hashref") ) { PTDEBUG && _d("VersionParser got a dbh, trying to get the version"); my $dbh = $_[0]; + local $dbh->{FetchHashKeyName} = 'NAME_lc'; my $query = eval { $dbh->selectall_arrayref(q, { Slice => {} }) }; diff --git a/bin/pt-deadlock-logger b/bin/pt-deadlock-logger index 7c6cc4e7..25d60d17 100755 --- a/bin/pt-deadlock-logger +++ b/bin/pt-deadlock-logger @@ -1599,6 +1599,7 @@ sub BUILDARGS { if ( blessed($_[0]) && $_[0]->can("selectrow_hashref") ) { PTDEBUG && _d("VersionParser got a dbh, trying to get the version"); my $dbh = $_[0]; + local $dbh->{FetchHashKeyName} = 'NAME_lc'; my $query = eval { $dbh->selectall_arrayref(q, { Slice => {} }) }; diff --git a/bin/pt-duplicate-key-checker b/bin/pt-duplicate-key-checker index 720b7652..b11bede9 100755 --- a/bin/pt-duplicate-key-checker +++ b/bin/pt-duplicate-key-checker @@ -575,6 +575,7 @@ sub BUILDARGS { if ( blessed($_[0]) && $_[0]->can("selectrow_hashref") ) { PTDEBUG && _d("VersionParser got a dbh, trying to get the version"); my $dbh = $_[0]; + local $dbh->{FetchHashKeyName} = 'NAME_lc'; my $query = eval { $dbh->selectall_arrayref(q, { Slice => {} }) }; diff --git a/bin/pt-find b/bin/pt-find index d083d7db..81f4e2a5 100755 --- a/bin/pt-find +++ b/bin/pt-find @@ -2080,6 +2080,7 @@ sub BUILDARGS { if ( blessed($_[0]) && $_[0]->can("selectrow_hashref") ) { PTDEBUG && _d("VersionParser got a dbh, trying to get the version"); my $dbh = $_[0]; + local $dbh->{FetchHashKeyName} = 'NAME_lc'; my $query = eval { $dbh->selectall_arrayref(q, { Slice => {} }) }; diff --git a/bin/pt-index-usage b/bin/pt-index-usage index 31dfa4f4..625f831d 100755 --- a/bin/pt-index-usage +++ b/bin/pt-index-usage @@ -4064,6 +4064,7 @@ sub BUILDARGS { if ( blessed($_[0]) && $_[0]->can("selectrow_hashref") ) { PTDEBUG && _d("VersionParser got a dbh, trying to get the version"); my $dbh = $_[0]; + local $dbh->{FetchHashKeyName} = 'NAME_lc'; my $query = eval { $dbh->selectall_arrayref(q, { Slice => {} }) }; diff --git a/bin/pt-online-schema-change b/bin/pt-online-schema-change index dd7a4b07..2c25373f 100755 --- a/bin/pt-online-schema-change +++ b/bin/pt-online-schema-change @@ -1600,6 +1600,7 @@ sub BUILDARGS { if ( blessed($_[0]) && $_[0]->can("selectrow_hashref") ) { PTDEBUG && _d("VersionParser got a dbh, trying to get the version"); my $dbh = $_[0]; + local $dbh->{FetchHashKeyName} = 'NAME_lc'; my $query = eval { $dbh->selectall_arrayref(q, { Slice => {} }) }; diff --git a/bin/pt-slave-find b/bin/pt-slave-find index aa60cd5d..f55a9a67 100755 --- a/bin/pt-slave-find +++ b/bin/pt-slave-find @@ -2854,6 +2854,7 @@ sub BUILDARGS { if ( blessed($_[0]) && $_[0]->can("selectrow_hashref") ) { PTDEBUG && _d("VersionParser got a dbh, trying to get the version"); my $dbh = $_[0]; + local $dbh->{FetchHashKeyName} = 'NAME_lc'; my $query = eval { $dbh->selectall_arrayref(q, { Slice => {} }) }; diff --git a/bin/pt-slave-restart b/bin/pt-slave-restart index 1047c32d..90ae54ef 100755 --- a/bin/pt-slave-restart +++ b/bin/pt-slave-restart @@ -1719,6 +1719,7 @@ sub BUILDARGS { if ( blessed($_[0]) && $_[0]->can("selectrow_hashref") ) { PTDEBUG && _d("VersionParser got a dbh, trying to get the version"); my $dbh = $_[0]; + local $dbh->{FetchHashKeyName} = 'NAME_lc'; my $query = eval { $dbh->selectall_arrayref(q, { Slice => {} }) }; diff --git a/bin/pt-table-checksum b/bin/pt-table-checksum index db2300da..c44c7ffc 100755 --- a/bin/pt-table-checksum +++ b/bin/pt-table-checksum @@ -2224,6 +2224,7 @@ sub BUILDARGS { if ( blessed($_[0]) && $_[0]->can("selectrow_hashref") ) { PTDEBUG && _d("VersionParser got a dbh, trying to get the version"); my $dbh = $_[0]; + local $dbh->{FetchHashKeyName} = 'NAME_lc'; my $query = eval { $dbh->selectall_arrayref(q, { Slice => {} }) }; diff --git a/bin/pt-table-sync b/bin/pt-table-sync index 6038ea51..c97437a5 100755 --- a/bin/pt-table-sync +++ b/bin/pt-table-sync @@ -2080,6 +2080,7 @@ sub BUILDARGS { if ( blessed($_[0]) && $_[0]->can("selectrow_hashref") ) { PTDEBUG && _d("VersionParser got a dbh, trying to get the version"); my $dbh = $_[0]; + local $dbh->{FetchHashKeyName} = 'NAME_lc'; my $query = eval { $dbh->selectall_arrayref(q, { Slice => {} }) }; diff --git a/bin/pt-upgrade b/bin/pt-upgrade index f87ea877..f8ee43d2 100755 --- a/bin/pt-upgrade +++ b/bin/pt-upgrade @@ -8677,6 +8677,7 @@ sub BUILDARGS { if ( blessed($_[0]) && $_[0]->can("selectrow_hashref") ) { PTDEBUG && _d("VersionParser got a dbh, trying to get the version"); my $dbh = $_[0]; + local $dbh->{FetchHashKeyName} = 'NAME_lc'; my $query = eval { $dbh->selectall_arrayref(q, { Slice => {} }) }; diff --git a/bin/pt-variable-advisor b/bin/pt-variable-advisor index d1de38b2..8d6a9670 100755 --- a/bin/pt-variable-advisor +++ b/bin/pt-variable-advisor @@ -1961,6 +1961,7 @@ sub BUILDARGS { if ( blessed($_[0]) && $_[0]->can("selectrow_hashref") ) { PTDEBUG && _d("VersionParser got a dbh, trying to get the version"); my $dbh = $_[0]; + local $dbh->{FetchHashKeyName} = 'NAME_lc'; my $query = eval { $dbh->selectall_arrayref(q, { Slice => {} }) };