mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-11 13:40:07 +00:00
Remove pt-table-sync/issue_79.t (it was broken but coincidentally working) and write better tests in filters.t. Add subs to Sandbox and PerconaTest to clear and parse tables used from the general logs. Set log=genlog in the sandbox configs.
This commit is contained in:
@@ -1,24 +1,43 @@
|
||||
--
|
||||
-- d1
|
||||
--
|
||||
DROP DATABASE IF EXISTS d1;
|
||||
DROP DATABASE IF EXISTS d2;
|
||||
DROP DATABASE IF EXISTS d3;
|
||||
|
||||
CREATE DATABASE d1;
|
||||
CREATE DATABASE d2;
|
||||
CREATE DATABASE d3;
|
||||
|
||||
CREATE TABLE d1.t1 (
|
||||
i int
|
||||
id int auto_increment primary key,
|
||||
c char(8)
|
||||
) ENGINE=MyISAM CHARSET=utf8;
|
||||
INSERT INTO d1.t1 VALUES (1),(2),(3),(4),(5),(6),(7),(8),(9);
|
||||
|
||||
CREATE TABLE d1.t2 (
|
||||
c varchar(255)
|
||||
id int auto_increment primary key,
|
||||
c varchar(8)
|
||||
) ENGINE=InnoDB;
|
||||
|
||||
CREATE TABLE d1.t3 (
|
||||
i int
|
||||
id int auto_increment primary key,
|
||||
c char(8)
|
||||
) ENGINE=MEMORY;
|
||||
|
||||
CREATE TABLE d2.t1 (
|
||||
i int
|
||||
);
|
||||
INSERT INTO d1.t1 VALUES (null, 'a'), (null, 'b'), (null, 'c'), (null, 'd'), (null, 'e'), (null, 'f'), (null, 'g'), (null, 'h'), (null, 'i');
|
||||
INSERT INTO d1.t2 SELECT * FROM d1.t1;
|
||||
INSERT INTO d1.t3 SELECT * FROM d1.t1;
|
||||
|
||||
--
|
||||
-- d2
|
||||
--
|
||||
DROP DATABASE IF EXISTS d2;
|
||||
CREATE DATABASE d2;
|
||||
|
||||
CREATE TABLE d2.t1 (
|
||||
id int auto_increment primary key,
|
||||
c char(8)
|
||||
);
|
||||
-- d2.t1 is an empty table.
|
||||
|
||||
--
|
||||
-- d3
|
||||
--
|
||||
DROP DATABASE IF EXISTS d3;
|
||||
CREATE DATABASE d3;
|
||||
-- d3 is an empty database.
|
||||
|
Reference in New Issue
Block a user