Debian Codegraph @

mysql-test/suite/rpl/r/rpl_killed_ddl.result

raw
1 include/master-slave.inc
2 Warnings:
3 Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
4 Note #### Storing MySQL user name or password information in the connection metadata repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START REPLICA; see the 'START REPLICA Syntax' in the MySQL Manual for more information.
5 [connection master]
6 DROP DATABASE IF EXISTS d1;
7 DROP DATABASE IF EXISTS d2;
8 DROP DATABASE IF EXISTS d3;
9 DROP DATABASE IF EXISTS d4;
10 DROP EVENT IF EXISTS e1;
11 DROP EVENT IF EXISTS e2;
12 DROP EVENT IF EXISTS e3;
13 DROP EVENT IF EXISTS e4;
14 DROP FUNCTION IF EXISTS f1;
15 DROP FUNCTION IF EXISTS f2;
16 DROP FUNCTION IF EXISTS f3;
17 DROP FUNCTION IF EXISTS f4;
18 DROP SERVER IF EXISTS s1;
19 DROP SERVER IF EXISTS s2;
20 DROP SERVER IF EXISTS s3;
21 DROP SERVER IF EXISTS s4;
22 DROP TABLE IF EXISTS t1;
23 DROP TABLE IF EXISTS t2;
24 DROP TABLE IF EXISTS t3;
25 DROP TABLE IF EXISTS t4;
26 DROP PROCEDURE IF EXISTS p1;
27 DROP PROCEDURE IF EXISTS p2;
28 DROP PROCEDURE IF EXISTS p3;
29 DROP PROCEDURE IF EXISTS p4;
30 DROP TRIGGER IF EXISTS tr1;
31 DROP TRIGGER IF EXISTS tr2;
32 DROP TRIGGER IF EXISTS tr3;
33 DROP TRIGGER IF EXISTS tr4;
34 CREATE DATABASE d1;
35 CREATE EVENT e1
36 ON SCHEDULE AT CURRENT_TIMESTAMP + INTERVAL 1 DAY
37 DO INSERT INTO test.t1 VALUES (1);
38 CREATE FUNCTION f1 () RETURNS INT DETERMINISTIC
39 RETURN 1;
40 CREATE PROCEDURE p1 (OUT rownum INT)
41 BEGIN
42 SELECT COUNT(*) INTO rownum FROM t1;
43 END;
44 //
45 CREATE SERVER s1
46 FOREIGN DATA WRAPPER mysql
47 OPTIONS (USER 'user1', HOST '192.168.1.106', DATABASE 'test');
48 CREATE TABLE t1 (a int);
49 CREATE TABLE t3 (a int);
50 CREATE TRIGGER tr1 BEFORE INSERT ON t1
51 FOR EACH ROW BEGIN
52 DELETE FROM t4 WHERE a=NEW.a;
53 END;
54 //
55 CREATE INDEX i1 ON t1 (a);
56 CREATE VIEW v1 AS SELECT a FROM t1 WHERE a < 100;
57 include/sync_slave_sql_with_master.inc
58 [on master]
59 [on master1]
60 CREATE DATABASE d2;
61 source include/kill_query.inc;
62 include/rpl_diff.inc
63 ALTER DATABASE d1
64 DEFAULT CHARACTER SET = 'utf8';
65 source include/kill_query.inc;
66 include/rpl_diff.inc
67 DROP DATABASE d1;
68 source include/kill_query.inc;
69 include/rpl_diff.inc
70 DROP DATABASE IF EXISTS d2;
71 source include/kill_query.inc;
72 include/rpl_diff.inc
73 CREATE EVENT e2
74 ON SCHEDULE AT CURRENT_TIMESTAMP + INTERVAL 1 DAY
75 DO INSERT INTO test.t1 VALUES (2);
76 source include/kill_query.inc;
77 include/rpl_diff.inc
78 ALTER EVENT e1
79 ON SCHEDULE AT CURRENT_TIMESTAMP + INTERVAL 2 DAY;
80 source include/kill_query.inc;
81 include/rpl_diff.inc
82 DROP EVENT e1;
83 source include/kill_query.inc;
84 include/rpl_diff.inc
85 DROP EVENT IF EXISTS e2;
86 source include/kill_query.inc;
87 include/rpl_diff.inc
88 CREATE FUNCTION f2 () RETURNS INT DETERMINISTIC
89 RETURN 1;
90 source include/kill_query.inc;
91 include/rpl_diff.inc
92 ALTER FUNCTION f1 SQL SECURITY INVOKER;
93 source include/kill_query.inc;
94 include/rpl_diff.inc
95 DROP FUNCTION f1;
96 source include/kill_query.inc;
97 include/rpl_diff.inc
98 DROP FUNCTION IF EXISTS f2;
99 source include/kill_query.inc;
100 include/rpl_diff.inc
101 CREATE PROCEDURE p2 (OUT rownum INT)
102 BEGIN
103 SELECT COUNT(*) INTO rownum FROM t2;
104 END;
105 //
106 source include/kill_query.inc;
107 include/rpl_diff.inc
108 ALTER PROCEDURE p1 SQL SECURITY INVOKER COMMENT 'return rows of table t1';
109 source include/kill_query.inc;
110 include/rpl_diff.inc
111 DROP PROCEDURE p1;
112 source include/kill_query.inc;
113 include/rpl_diff.inc
114 DROP PROCEDURE IF EXISTS p2;
115 source include/kill_query.inc;
116 include/rpl_diff.inc
117 CREATE TABLE t2 (b int);
118 source include/kill_query.inc;
119 include/rpl_diff.inc
120 ALTER TABLE t1 ADD (d int);
121 source include/kill_query.inc;
122 include/rpl_diff.inc
123 RENAME TABLE t3 TO t4;
124 source include/kill_query.inc;
125 include/rpl_diff.inc
126 CREATE INDEX i2 on t1 (a);
127 source include/kill_query.inc;
128 include/rpl_diff.inc
129 DROP INDEX i1 on t1;
130 source include/kill_query.inc;
131 include/rpl_diff.inc
132 CREATE TABLE IF NOT EXISTS t4 (a int);
133 CREATE TRIGGER tr2 BEFORE INSERT ON t4
134 FOR EACH ROW BEGIN
135 DELETE FROM t1 WHERE a=NEW.a;
136 END;
137 //
138 source include/kill_query.inc;
139 include/rpl_diff.inc
140 DROP TRIGGER tr1;
141 source include/kill_query.inc;
142 include/rpl_diff.inc
143 DROP TRIGGER IF EXISTS tr2;
144 source include/kill_query.inc;
145 include/rpl_diff.inc
146 CREATE VIEW v2 AS SELECT a FROM t1 WHERE a > 100;
147 source include/kill_query.inc;
148 include/rpl_diff.inc
149 DROP VIEW v1;
150 source include/kill_query.inc;
151 include/rpl_diff.inc
152 DROP VIEW IF EXISTS v2;
153 source include/kill_query.inc;
154 include/rpl_diff.inc
155 DROP TABLE t1;
156 source include/kill_query.inc;
157 include/rpl_diff.inc
158 DROP TABLE IF EXISTS t2;
159 source include/kill_query.inc;
160 include/rpl_diff.inc
161 DROP DATABASE IF EXISTS d1;
162 DROP DATABASE IF EXISTS d2;
163 DROP DATABASE IF EXISTS d3;
164 DROP DATABASE IF EXISTS d4;
165 DROP EVENT IF EXISTS e1;
166 DROP EVENT IF EXISTS e2;
167 DROP EVENT IF EXISTS e3;
168 DROP EVENT IF EXISTS e4;
169 DROP FUNCTION IF EXISTS f1;
170 DROP FUNCTION IF EXISTS f2;
171 DROP FUNCTION IF EXISTS f3;
172 DROP FUNCTION IF EXISTS f4;
173 DROP SERVER IF EXISTS s1;
174 DROP SERVER IF EXISTS s2;
175 DROP SERVER IF EXISTS s3;
176 DROP SERVER IF EXISTS s4;
177 DROP TABLE IF EXISTS t1;
178 DROP TABLE IF EXISTS t2;
179 DROP TABLE IF EXISTS t3;
180 DROP TABLE IF EXISTS t4;
181 DROP VIEW IF EXISTS v1;
182 DROP VIEW IF EXISTS v2;
183 DROP PROCEDURE IF EXISTS p1;
184 DROP PROCEDURE IF EXISTS p2;
185 DROP PROCEDURE IF EXISTS p3;
186 DROP PROCEDURE IF EXISTS p4;
187 include/rpl_end.inc