Debian Codegraph @

mysql-test/suite/ndb_rpl/r/ndb_rpl_bug22045.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 create table t1 (a int primary key,
7 b varchar(100) default 'b',
8 c varchar(100)) engine=ndbcluster;
9 insert into t1 values (1, 'b1', 'c1');
10 insert into t1 (a) values (2);
11 insert into t1 (a, b) values (3, 'b3');
12 replace into t1 values (5, 'b5', 'c5');
13 replace into t1 (a) values (6);
14 replace into t1 (a, c) values (7, 'c7');
15 select * from t1 order by a;
16 a b c
17 1 b1 c1
18 2 b NULL
19 3 b3 NULL
20 5 b5 c5
21 6 b NULL
22 7 b c7
23 select * from t1 order by a;
24 a b c
25 1 b1 c1
26 2 b NULL
27 3 b3 NULL
28 5 b5 c5
29 6 b NULL
30 7 b c7
31 replace into t1 (a) values (1);
32 replace into t1 (a, b) values (2, 'b2x');
33 replace into t1 (a, c) values (3, 'c3x');
34 replace into t1 (a, b, c) values (5, 'b5x', 'c5x');
35 replace into t1 (a) values (6);
36 replace into t1 (a) values (7);
37 select * from t1 order by a;
38 a b c
39 1 b NULL
40 2 b2x NULL
41 3 b c3x
42 5 b5x c5x
43 6 b NULL
44 7 b NULL
45 select * from t1 order by a;
46 a b c
47 1 b NULL
48 2 b2x NULL
49 3 b c3x
50 5 b5x c5x
51 6 b NULL
52 7 b NULL
53 drop table t1;
54 create table t1 (a int primary key,
55 b varchar(100) default 'b',
56 c varchar(100),
57 d text,
58 e text) engine=ndbcluster;
59 insert into t1 values (1, 'b1', 'c1', 'd1', 'e1');
60 insert into t1 (a) values (2);
61 insert into t1 (a, b, d) values (3, 'b3', 'd3');
62 replace into t1 values (5, 'b5', 'c5', 'd5', 'e5');
63 replace into t1 (a) values (6);
64 replace into t1 (a, c, e) values (7, 'c7', 'e7');
65 select * from t1 order by a;
66 a b c d e
67 1 b1 c1 d1 e1
68 2 b NULL NULL NULL
69 3 b3 NULL d3 NULL
70 5 b5 c5 d5 e5
71 6 b NULL NULL NULL
72 7 b c7 NULL e7
73 select * from t1 order by a;
74 a b c d e
75 1 b1 c1 d1 e1
76 2 b NULL NULL NULL
77 3 b3 NULL d3 NULL
78 5 b5 c5 d5 e5
79 6 b NULL NULL NULL
80 7 b c7 NULL e7
81 replace into t1 (a) values (1);
82 replace into t1 (a, b, d) values (2, 'b2x', 'd2x');
83 replace into t1 (a, c, e) values (3, 'c3x', 'e3x');
84 replace into t1 (a, b, c, d, e) values (5, 'b5x', 'c5x', 'd5x', 'e5x');
85 replace into t1 (a) values (6);
86 replace into t1 (a, e) values (7, 'e7x');
87 select * from t1 order by a;
88 a b c d e
89 1 b NULL NULL NULL
90 2 b2x NULL d2x NULL
91 3 b c3x NULL e3x
92 5 b5x c5x d5x e5x
93 6 b NULL NULL NULL
94 7 b NULL NULL e7x
95 select * from t1 order by a;
96 a b c d e
97 1 b NULL NULL NULL
98 2 b2x NULL d2x NULL
99 3 b c3x NULL e3x
100 5 b5x c5x d5x e5x
101 6 b NULL NULL NULL
102 7 b NULL NULL e7x
103 drop table t1;
104 include/rpl_end.inc