add test case

This commit is contained in:
utdrmac
2025-08-20 16:20:12 -05:00
parent be598413ef
commit 059a6fb52c
2 changed files with 30 additions and 0 deletions

View File

@@ -80,6 +80,15 @@ ok(
'--nosql'
);
ok(
no_diff(
sub { pt_duplicate_key_checker::main(@args, qw(-d test --invisible)) },
"$sample/basic_invisible.txt",
transform_sample => $transform_int
),
'--invisible'
);
ok(
no_diff(
sub { pt_duplicate_key_checker::main(@args, qw(-d test --nosummary)) },

View File

@@ -0,0 +1,21 @@
# ########################################################################
# test.dupe_key
# ########################################################################
# a is a left-prefix of a_2
# Key definitions:
# KEY `a` (`a`),
# KEY `a_2` (`a`,`b`)
# Column types:
# `a` int(11) default null
# `b` int(11) default null
# To remove this duplicate index, execute:
ALTER TABLE `test`.`dupe_key` ALTER INDEX `a` INVISIBLE;
# ########################################################################
# Summary of indexes
# ########################################################################
# Size Duplicate Indexes 0
# Total Duplicate Indexes 1
# Total Indexes 2