mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-10-18 00:14:12 +00:00
Merge 2.1.
This commit is contained in:
@@ -95,6 +95,17 @@ ok(
|
||||
'No results for nonexistent db'
|
||||
);
|
||||
|
||||
$dbh->do('create database test');
|
||||
$sb->load_file('master', 't/lib/samples/dupekeys/dupe-cluster-bug-894140.sql', 'test');
|
||||
|
||||
ok(
|
||||
no_diff(
|
||||
sub { pt_duplicate_key_checker::main(@args, qw(-d test)) },
|
||||
"$sample/bug-894140.txt",
|
||||
),
|
||||
"Bug 894140"
|
||||
);
|
||||
|
||||
# #############################################################################
|
||||
# Done.
|
||||
# #############################################################################
|
||||
|
29
t/pt-duplicate-key-checker/samples/bug-894140.txt
Normal file
29
t/pt-duplicate-key-checker/samples/bug-894140.txt
Normal file
@@ -0,0 +1,29 @@
|
||||
# ########################################################################
|
||||
# test.bug_894140
|
||||
# ########################################################################
|
||||
|
||||
# row_id is a duplicate of PRIMARY
|
||||
# Key definitions:
|
||||
# UNIQUE KEY `row_id` (`row_id`),
|
||||
# PRIMARY KEY (`row_id`),
|
||||
# Column types:
|
||||
# `row_id` bigint(20) not null auto_increment
|
||||
# To remove this duplicate index, execute:
|
||||
ALTER TABLE `test`.`bug_894140` DROP INDEX `row_id`;
|
||||
|
||||
# player_id_2 is a duplicate of player_id
|
||||
# Key definitions:
|
||||
# KEY `player_id_2` (`player_id`)
|
||||
# UNIQUE KEY `player_id` (`player_id`),
|
||||
# Column types:
|
||||
# `player_id` bigint(20) default null
|
||||
# To remove this duplicate index, execute:
|
||||
ALTER TABLE `test`.`bug_894140` DROP INDEX `player_id_2`;
|
||||
|
||||
# ########################################################################
|
||||
# Summary of indexes
|
||||
# ########################################################################
|
||||
|
||||
# Size Duplicate Indexes 17
|
||||
# Total Duplicate Indexes 2
|
||||
# Total Indexes 4
|
Reference in New Issue
Block a user