~drizzle-trunk/drizzle/development

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
DROP TABLE IF EXISTS t1;
CREATE TABLE t1 (
id INT NOT NULL
, padding VARCHAR(200) NOT NULL
, PRIMARY KEY (id)
);
INSERT INTO t1 VALUES (1, "I love testing.");
INSERT INTO t1 VALUES (2, "I hate testing.");
DELETE FROM t1 where id = 1;
DROP TABLE t1;
CREATE TABLE t1 (
id INT NOT NULL
, other INT NOT NULL
, PRIMARY KEY (id)
);
INSERT INTO t1 VALUES (1, 1);
INSERT INTO t1 VALUES (2, 2);
INSERT INTO t1 VALUES (3, 3);
INSERT INTO t1 VALUES (4, 4);
INSERT INTO t1 VALUES (5, 5);
INSERT INTO t1 VALUES (6, 6);
INSERT INTO t1 VALUES (7, 7);
INSERT INTO t1 VALUES (8, 8);
DELETE FROM t1;
DROP TABLE t1;
Start Test of LP Bug #496101
CREATE TABLE t1 (
id INT NOT NULL
, padding VARCHAR(200) NOT NULL
, PRIMARY KEY (id)
);
START TRANSACTION;
INSERT INTO t1 VALUES (1, "I love testing.");
INSERT INTO t1 VALUES (2, "I hate testing.");
DELETE FROM t1 where id = 1;
COMMIT;
DROP TABLE t1;
End Test of LP Bug #496101
SET AUTOCOMMIT=0;
CREATE TABLE `test`.`t1` (   `id` INT NOT NULL,   `padding` VARCHAR(200) COLLATE utf8_general_ci NOT NULL,   PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB COLLATE = utf8_general_ci;
COMMIT;
START TRANSACTION;
INSERT INTO `test`.`t1` (`id`,`padding`) VALUES (1,'I love testing.');
COMMIT;
START TRANSACTION;
INSERT INTO `test`.`t1` (`id`,`padding`) VALUES (2,'I hate testing.');
COMMIT;
START TRANSACTION;
DELETE FROM `test`.`t1` WHERE `id`=1;
COMMIT;
SET AUTOCOMMIT=0;
DROP TABLE `test`.`t1`;
COMMIT;
SET AUTOCOMMIT=0;
CREATE TABLE `test`.`t1` (   `id` INT NOT NULL,   `other` INT NOT NULL,   PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB COLLATE = utf8_general_ci;
COMMIT;
START TRANSACTION;
INSERT INTO `test`.`t1` (`id`,`other`) VALUES (1,1);
COMMIT;
START TRANSACTION;
INSERT INTO `test`.`t1` (`id`,`other`) VALUES (2,2);
COMMIT;
START TRANSACTION;
INSERT INTO `test`.`t1` (`id`,`other`) VALUES (3,3);
COMMIT;
START TRANSACTION;
INSERT INTO `test`.`t1` (`id`,`other`) VALUES (4,4);
COMMIT;
START TRANSACTION;
INSERT INTO `test`.`t1` (`id`,`other`) VALUES (5,5);
COMMIT;
START TRANSACTION;
INSERT INTO `test`.`t1` (`id`,`other`) VALUES (6,6);
COMMIT;
START TRANSACTION;
INSERT INTO `test`.`t1` (`id`,`other`) VALUES (7,7);
COMMIT;
START TRANSACTION;
INSERT INTO `test`.`t1` (`id`,`other`) VALUES (8,8);
COMMIT;
START TRANSACTION;
DELETE FROM `test`.`t1` WHERE `id`=1;
DELETE FROM `test`.`t1` WHERE `id`=2;
DELETE FROM `test`.`t1` WHERE `id`=3;
DELETE FROM `test`.`t1` WHERE `id`=4;
DELETE FROM `test`.`t1` WHERE `id`=5;
DELETE FROM `test`.`t1` WHERE `id`=6;
DELETE FROM `test`.`t1` WHERE `id`=7;
DELETE FROM `test`.`t1` WHERE `id`=8;
COMMIT;
SET AUTOCOMMIT=0;
DROP TABLE `test`.`t1`;
COMMIT;
SET AUTOCOMMIT=0;
CREATE TABLE `test`.`t1` (   `id` INT NOT NULL,   `padding` VARCHAR(200) COLLATE utf8_general_ci NOT NULL,   PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB COLLATE = utf8_general_ci;
COMMIT;
START TRANSACTION;
INSERT INTO `test`.`t1` (`id`,`padding`) VALUES (1,'I love testing.');
INSERT INTO `test`.`t1` (`id`,`padding`) VALUES (2,'I hate testing.');
DELETE FROM `test`.`t1` WHERE `id`=1;
COMMIT;
SET AUTOCOMMIT=0;
DROP TABLE `test`.`t1`;
COMMIT;

Generating statements for innodb replication log
SET AUTOCOMMIT=0;
CREATE TABLE `test`.`t1` (   `id` INT NOT NULL,   `padding` VARCHAR(200) COLLATE utf8_general_ci NOT NULL,   PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB COLLATE = utf8_general_ci;
COMMIT;
START TRANSACTION;
INSERT INTO `test`.`t1` (`id`,`padding`) VALUES (1,'I love testing.');
COMMIT;
START TRANSACTION;
INSERT INTO `test`.`t1` (`id`,`padding`) VALUES (2,'I hate testing.');
COMMIT;
START TRANSACTION;
DELETE FROM `test`.`t1` WHERE `id`=1;
COMMIT;
SET AUTOCOMMIT=0;
DROP TABLE `test`.`t1`;
COMMIT;
SET AUTOCOMMIT=0;
CREATE TABLE `test`.`t1` (   `id` INT NOT NULL,   `other` INT NOT NULL,   PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB COLLATE = utf8_general_ci;
COMMIT;
START TRANSACTION;
INSERT INTO `test`.`t1` (`id`,`other`) VALUES (1,1);
COMMIT;
START TRANSACTION;
INSERT INTO `test`.`t1` (`id`,`other`) VALUES (2,2);
COMMIT;
START TRANSACTION;
INSERT INTO `test`.`t1` (`id`,`other`) VALUES (3,3);
COMMIT;
START TRANSACTION;
INSERT INTO `test`.`t1` (`id`,`other`) VALUES (4,4);
COMMIT;
START TRANSACTION;
INSERT INTO `test`.`t1` (`id`,`other`) VALUES (5,5);
COMMIT;
START TRANSACTION;
INSERT INTO `test`.`t1` (`id`,`other`) VALUES (6,6);
COMMIT;
START TRANSACTION;
INSERT INTO `test`.`t1` (`id`,`other`) VALUES (7,7);
COMMIT;
START TRANSACTION;
INSERT INTO `test`.`t1` (`id`,`other`) VALUES (8,8);
COMMIT;
START TRANSACTION;
DELETE FROM `test`.`t1` WHERE `id`=1;
DELETE FROM `test`.`t1` WHERE `id`=2;
DELETE FROM `test`.`t1` WHERE `id`=3;
DELETE FROM `test`.`t1` WHERE `id`=4;
DELETE FROM `test`.`t1` WHERE `id`=5;
DELETE FROM `test`.`t1` WHERE `id`=6;
DELETE FROM `test`.`t1` WHERE `id`=7;
DELETE FROM `test`.`t1` WHERE `id`=8;
COMMIT;
SET AUTOCOMMIT=0;
DROP TABLE `test`.`t1`;
COMMIT;
SET AUTOCOMMIT=0;
CREATE TABLE `test`.`t1` (   `id` INT NOT NULL,   `padding` VARCHAR(200) COLLATE utf8_general_ci NOT NULL,   PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB COLLATE = utf8_general_ci;
COMMIT;
START TRANSACTION;
INSERT INTO `test`.`t1` (`id`,`padding`) VALUES (1,'I love testing.');
INSERT INTO `test`.`t1` (`id`,`padding`) VALUES (2,'I hate testing.');
DELETE FROM `test`.`t1` WHERE `id`=1;
COMMIT;
SET AUTOCOMMIT=0;
DROP TABLE `test`.`t1`;
COMMIT;
SET GLOBAL transaction_log_truncate_debug= true;