mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-18 01:33:14 +00:00
Add forked Maatkit tools in bin/ and their tests in t/.
This commit is contained in:
17
t/pt-table-sync/samples/issue_367.sql
Normal file
17
t/pt-table-sync/samples/issue_367.sql
Normal file
@@ -0,0 +1,17 @@
|
||||
DROP DATABASE IF EXISTS db1;
|
||||
CREATE DATABASE db1;
|
||||
USE db1;
|
||||
CREATE TABLE db1.t1 (i INT NOT NULL, UNIQUE INDEX (i));
|
||||
DELIMITER |
|
||||
CREATE TRIGGER mytrg BEFORE INSERT ON db1.t1
|
||||
FOR EACH ROW BEGIN
|
||||
-- This trigger doesn't have to do anything, it just needs to exist.
|
||||
END;
|
||||
|
|
||||
DELIMITER ;
|
||||
|
||||
DROP DATABASE IF EXISTS db2;
|
||||
CREATE DATABASE db2;
|
||||
USE db2;
|
||||
CREATE TABLE db2.t1 (i INT NOT NULL, UNIQUE INDEX (i));
|
||||
INSERT INTO db2.t1 VALUES (1), (2), (3), (4), (5);
|
Reference in New Issue
Block a user