~drizzle-trunk/drizzle/development

1039.5.17 by Jay Pipes
Adds log truncation debugging functionality to the serial event log plugin. Cleans up the serial event log test suite to properly include and output result files.
1
DROP TABLE IF EXISTS t1;
2
CREATE TABLE t1 (
3
id INT NOT NULL
4
, padding VARCHAR(200) NOT NULL
5
);
6
INSERT INTO t1 VALUES (1, "I love testing.");
7
INSERT INTO t1 VALUES (2, "I hate testing.");
8
DROP TABLE IF EXISTS t1;
9
CREATE TABLE t1 (
10
id INT NOT NULL
11
, padding VARCHAR(200) NOT NULL
12
);
13
INSERT INTO t1 VALUES (1, "I love testing."), (2, "I hate testing.");
14
DROP TABLE IF EXISTS t1;
15
CREATE TABLE t1 (
16
id INT NOT NULL
17
, padding VARCHAR(200) NOT NULL
18
, PRIMARY KEY (id)
19
);
20
INSERT INTO t1 VALUES (1, "I love testing.");
21
INSERT INTO t1 VALUES (2, "I hate testing.");
22
ALTER TABLE t1 ADD dummy INT;
23
CREATE DATABASE test1;
24
DROP DATABASE test1;
25
DROP TABLE IF EXISTS t1, t2;
26
CREATE TABLE t1 (
27
id INT NOT NULL
28
, padding VARCHAR(200) NOT NULL
29
, PRIMARY KEY (id)
30
);
31
RENAME TABLE t1 TO t2;
32
DROP TABLE IF EXISTS t1;
33
CREATE TABLE t1 (
34
id INT NOT NULL
35
, padding VARCHAR(200) NOT NULL
36
, PRIMARY KEY (id)
37
);
38
INSERT INTO t1 VALUES (1, "I love testing.");
39
INSERT INTO t1 VALUES (2, "I hate testing.");
40
DELETE FROM t1 where id = 1;
41
/*  */
42
DROP TABLE IF EXISTS t1;
43
/*  */
44
CREATE TABLE t1 ( id INT NOT NULL , padding VARCHAR(200) NOT NULL );
45
/*  */
46
INSERT INTO `test`.`t1` (`id`, `padding`) VALUES ("1", "I love testing.");
47
/*  */
48
INSERT INTO `test`.`t1` (`id`, `padding`) VALUES ("2", "I hate testing.");
49
/*  */
50
DROP TABLE IF EXISTS t1;
51
/*  */
52
CREATE TABLE t1 ( id INT NOT NULL , padding VARCHAR(200) NOT NULL );
53
/*  */
54
INSERT INTO `test`.`t1` (`id`, `padding`) VALUES ("1", "I love testing.");
55
/*  */
56
INSERT INTO `test`.`t1` (`id`, `padding`) VALUES ("2", "I hate testing.");
57
/*  */
58
DROP TABLE IF EXISTS t1;
59
/*  */
60
CREATE TABLE t1 ( id INT NOT NULL , padding VARCHAR(200) NOT NULL , PRIMARY KEY (id) );
61
/*  */
62
INSERT INTO `test`.`t1` (`id`, `padding`) VALUES ("1", "I love testing.");
63
/*  */
64
INSERT INTO `test`.`t1` (`id`, `padding`) VALUES ("2", "I hate testing.");
65
/*  */
66
ALTER TABLE t1 ADD dummy INT;
67
/*  */
68
CREATE DATABASE test1;
69
/*  */
70
DROP DATABASE test1;
71
/*  */
72
DROP TABLE IF EXISTS t1, t2;
73
/*  */
74
CREATE TABLE t1 ( id INT NOT NULL , padding VARCHAR(200) NOT NULL , PRIMARY KEY (id) );
75
/*  */
76
RENAME TABLE t1 TO t2;
77
/*  */
78
DROP TABLE IF EXISTS t1;
79
/*  */
80
CREATE TABLE t1 ( id INT NOT NULL , padding VARCHAR(200) NOT NULL , PRIMARY KEY (id) );
81
/*  */
82
INSERT INTO `test`.`t1` (`id`, `padding`) VALUES ("1", "I love testing.");
83
/*  */
84
INSERT INTO `test`.`t1` (`id`, `padding`) VALUES ("2", "I hate testing.");
85
/*  */
86
DELETE FROM `test`.`t1` WHERE `id` = "1";
1039.5.28 by Jay Pipes
Renames serial event log to command log
87
SET GLOBAL command_log_truncate_debug= true;
88
0var/master-data/command.log