Debian Codegraph @

mysql-test/suite/rpl/r/rpl_sp004.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 PROCEDURE IF EXISTS test.p1;
7 DROP PROCEDURE IF EXISTS test.p2;
8 DROP TABLE IF EXISTS test.t2;
9 DROP TABLE IF EXISTS test.t1;
10 DROP TABLE IF EXISTS test.t3;
11 CREATE PROCEDURE test.p1()
12 BEGIN
13 CREATE TABLE IF NOT EXISTS test.t1(a INT,PRIMARY KEY(a));
14 CREATE TABLE IF NOT EXISTS test.t2(a INT,PRIMARY KEY(a));
15 INSERT INTO test.t1 VALUES (4),(2),(1),(3);
16 UPDATE test.t1 SET a=a+4 WHERE a=4;
17 INSERT INTO test.t2 (a) SELECT t1.a FROM test.t1;
18 UPDATE test.t1 SET a=a+4 WHERE a=8;
19 CREATE TABLE IF NOT EXISTS test.t3(n MEDIUMINT NOT NULL AUTO_INCREMENT, f FLOAT, d DATETIME, PRIMARY KEY(n));
20 END|
21 CREATE PROCEDURE test.p2()
22 BEGIN
23 DROP TABLE IF EXISTS test.t1;
24 DROP TABLE IF EXISTS test.t2;
25 INSERT INTO test.t3 VALUES(NULL,11111111.233333,NOW());
26 END|
27 CALL test.p1();
28 SELECT * FROM test.t1 ORDER BY a;
29 a
30 1
31 2
32 3
33 12
34 SELECT * FROM test.t2 ORDER BY a;
35 a
36 1
37 2
38 3
39 8
40 include/sync_slave_sql_with_master.inc
41 SELECT * FROM test.t1 ORDER BY a;
42 a
43 1
44 2
45 3
46 12
47 SELECT * FROM test.t2 ORDER BY a;
48 a
49 1
50 2
51 3
52 8
53 CALL test.p2();
54 USE test;
55 SHOW TABLES;
56 Tables_in_test
57 t3
58 include/sync_slave_sql_with_master.inc
59 USE test;
60 SHOW TABLES;
61 Tables_in_test
62 t3
63 CALL test.p1();
64 Warnings:
65 Note 1050 Table 't3' already exists
66 SELECT * FROM test.t1 ORDER BY a;
67 a
68 1
69 2
70 3
71 12
72 SELECT * FROM test.t2 ORDER BY a;
73 a
74 1
75 2
76 3
77 8
78 include/sync_slave_sql_with_master.inc
79 SELECT * FROM test.t1 ORDER BY a;
80 a
81 1
82 2
83 3
84 12
85 SELECT * FROM test.t2 ORDER BY a;
86 a
87 1
88 2
89 3
90 8
91 DROP PROCEDURE IF EXISTS test.p1;
92 DROP PROCEDURE IF EXISTS test.p2;
93 DROP TABLE IF EXISTS test.t1;
94 DROP TABLE IF EXISTS test.t2;
95 DROP TABLE IF EXISTS test.t3;
96 include/sync_slave_sql_with_master.inc
97 include/rpl_end.inc