mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-15 07:55:51 +00:00
EXPLAIN actual ascending nibble query to get MySQL's chosen index, and use that instead of the tool's chosen index. TODO: fix OobNibbleIterator.t and chunk_index.t.
This commit is contained in:
20
t/pt-table-checksum/samples/not-using-pk-bug.sql
Normal file
20
t/pt-table-checksum/samples/not-using-pk-bug.sql
Normal file
@@ -0,0 +1,20 @@
|
||||
DROP DATABASE IF EXISTS test;
|
||||
CREATE DATABASE test;
|
||||
USE test;
|
||||
CREATE TABLE `multi_resource_apt` (
|
||||
`apt_id` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`res_id` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`apt_id`,`res_id`),
|
||||
KEY `resid` (`res_id`)
|
||||
) ENGINE=InnoDB;
|
||||
INSERT INTO multi_resource_apt VALUES
|
||||
(1, 1),
|
||||
(2, 1),
|
||||
(2, 2),
|
||||
(3, 1),
|
||||
(3, 2),
|
||||
(3, 3),
|
||||
(4, 1),
|
||||
(4, 2),
|
||||
(4, 3),
|
||||
(4, 4);
|
Reference in New Issue
Block a user