mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-14 07:06:28 +00:00
Add forked Maatkit tools in bin/ and their tests in t/.
This commit is contained in:
19
t/pt-duplicate-key-checker/samples/issue_331.sql
Normal file
19
t/pt-duplicate-key-checker/samples/issue_331.sql
Normal file
@@ -0,0 +1,19 @@
|
||||
DROP DATABASE IF EXISTS issue_331;
|
||||
CREATE DATABASE issue_331;
|
||||
USE issue_331;
|
||||
|
||||
DROP TABLE IF EXISTS `issue_331_t1`;
|
||||
CREATE TABLE `issue_331_t1` (
|
||||
`t1_id` bigint(20) NOT NULL default '0',
|
||||
`bar` bigint(20) NOT NULL default '0',
|
||||
PRIMARY KEY (`t1_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||
|
||||
DROP TABLE IF EXISTS `issue_331_t2`;
|
||||
CREATE TABLE `issue_331_t2` (
|
||||
`id` bigint(20) NOT NULL default '0',
|
||||
`foo` bigint(20) NOT NULL default '0',
|
||||
PRIMARY KEY (`id`),
|
||||
CONSTRAINT `fk_1` FOREIGN KEY (`id`) REFERENCES `issue_331_t1` (`t1_id`),
|
||||
CONSTRAINT `fk_2` FOREIGN KEY (`id`) REFERENCES `issue_331_t1` (`t1_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
Reference in New Issue
Block a user