Add forked Maatkit tools in bin/ and their tests in t/.

This commit is contained in:
Daniel Nichter
2011-06-24 16:02:05 -06:00
parent 6c501128e6
commit b4b6376be1
679 changed files with 177876 additions and 3 deletions

View File

@@ -0,0 +1,53 @@
drop database if exists cai;
create database cai;
use cai;
CREATE TABLE `t` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`c` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (`id`)
) ENGINE=InnoDB;
insert into `t` values
(1, 'one'),
(2, 'two'),
(3, 'three'),
(4, 'four'),
(5, 'five'),
(9, 'nine'),
(11, 'eleven'),
(13, 'thirteen'),
(14, 'fourteen'),
(50, 'fifty'),
(51, 'fifty one'),
(200, 'two hundred'),
(300, 'three hundred'),
(304, 'three hundred four'),
(305, 'three hundred five');
-- After compacting table t, the result should be table r.
-- Just the id vals are shifted down to the lowest possible
-- value, but the c values stay the same.
CREATE TABLE `r` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`c` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (`id`)
) ENGINE=InnoDB;
insert into `r` values
(1, 'one'),
(2, 'two'),
(3, 'three'),
(4, 'four'),
(5, 'five'),
(6, 'nine'),
(7, 'eleven'),
(8, 'thirteen'),
(9, 'fourteen'),
(10, 'fifty'),
(11, 'fifty one'),
(12, 'two hundred'),
(13, 'three hundred'),
(14, 'three hundred four'),
(15, 'three hundred five');