~stewart/drizzle/embedded-innodb-create-select-transaction-arrgh

« back to all changes in this revision

Viewing changes to mysql-test/suite/rpl/r/rpl_row_tabledefs_7ndb.result

  • Committer: brian
  • Date: 2008-06-25 05:29:13 UTC
  • Revision ID: brian@localhost.localdomain-20080625052913-6upwo0jsrl4lnapl
clean slate

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
stop slave;
 
2
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
 
3
reset master;
 
4
reset slave;
 
5
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
 
6
start slave;
 
7
STOP SLAVE;
 
8
SET @my_sql_mode= @@global.sql_mode;
 
9
SET GLOBAL SQL_MODE='STRICT_ALL_TABLES';
 
10
START SLAVE;
 
11
CREATE TABLE t1_int (a INT PRIMARY KEY, b INT) ENGINE='NDB';
 
12
CREATE TABLE t1_bit (a INT PRIMARY KEY, b INT) ENGINE='NDB';
 
13
CREATE TABLE t1_char (a INT PRIMARY KEY, b INT) ENGINE='NDB';
 
14
CREATE TABLE t1_nodef (a INT PRIMARY KEY, b INT) ENGINE='NDB';
 
15
CREATE TABLE t2 (a INT PRIMARY KEY, b INT) ENGINE='NDB';
 
16
CREATE TABLE t3 (a INT PRIMARY KEY, b INT) ENGINE='NDB';
 
17
CREATE TABLE t4 (a INT) ENGINE='NDB';
 
18
CREATE TABLE t5 (a INT, b INT, c INT) ENGINE='NDB';
 
19
CREATE TABLE t6 (a INT, b INT, c INT) ENGINE='NDB';
 
20
CREATE TABLE t9 (a INT) ENGINE='NDB';
 
21
ALTER TABLE t1_int ADD x INT DEFAULT 42;
 
22
ALTER TABLE t1_bit
 
23
ADD x BIT(3) DEFAULT b'011',
 
24
ADD y BIT(5) DEFAULT b'10101',
 
25
ADD z BIT(2) DEFAULT b'10';
 
26
ALTER TABLE t1_char ADD x CHAR(20) DEFAULT 'Just a test';
 
27
ALTER TABLE t1_nodef ADD x INT NOT NULL;
 
28
ALTER TABLE t2 DROP b;
 
29
ALTER TABLE t4 MODIFY a FLOAT;
 
30
ALTER TABLE t5 MODIFY b FLOAT;
 
31
ALTER TABLE t6 MODIFY c FLOAT;
 
32
INSERT INTO t1_int  VALUES (2, 4, 4711);
 
33
INSERT INTO t1_char VALUES (2, 4, 'Foo is a bar');
 
34
INSERT INTO t1_bit  VALUES (2, 4, b'101', b'11100', b'01');
 
35
**** On Master ****
 
36
INSERT INTO t1_int VALUES (1,2);
 
37
INSERT INTO t1_int VALUES (2,5);
 
38
INSERT INTO t1_bit VALUES (1,2);
 
39
INSERT INTO t1_bit VALUES (2,5);
 
40
INSERT INTO t1_char VALUES (1,2);
 
41
INSERT INTO t1_char VALUES (2,5);
 
42
SELECT * FROM t1_int;
 
43
a       b
 
44
1       2
 
45
2       5
 
46
SELECT * FROM t1_bit;
 
47
a       b
 
48
1       2
 
49
2       5
 
50
SELECT * FROM t1_char;
 
51
a       b
 
52
1       2
 
53
2       5
 
54
**** On Slave ****
 
55
SELECT a,b,x FROM t1_int;
 
56
a       b       x
 
57
1       2       42
 
58
2       5       42
 
59
SELECT a,b,HEX(x),HEX(y),HEX(z) FROM t1_bit;
 
60
a       b       HEX(x)  HEX(y)  HEX(z)
 
61
1       2       3       15      2
 
62
2       5       3       15      2
 
63
SELECT a,b,x FROM t1_char;
 
64
a       b       x
 
65
1       2       Just a test
 
66
2       5       Just a test
 
67
**** On Master ****
 
68
UPDATE t1_int  SET b=2*b WHERE a=2;
 
69
UPDATE t1_char SET b=2*b WHERE a=2;
 
70
UPDATE t1_bit  SET b=2*b WHERE a=2;
 
71
SELECT * FROM t1_int;
 
72
a       b
 
73
1       2
 
74
2       10
 
75
SELECT * FROM t1_bit;
 
76
a       b
 
77
1       2
 
78
2       10
 
79
SELECT * FROM t1_char;
 
80
a       b
 
81
1       2
 
82
2       10
 
83
**** On Slave ****
 
84
SELECT a,b,x FROM t1_int;
 
85
a       b       x
 
86
1       2       42
 
87
2       10      42
 
88
SELECT a,b,HEX(x),HEX(y),HEX(z) FROM t1_bit;
 
89
a       b       HEX(x)  HEX(y)  HEX(z)
 
90
1       2       3       15      2
 
91
2       10      3       15      2
 
92
SELECT a,b,x FROM t1_char;
 
93
a       b       x
 
94
1       2       Just a test
 
95
2       10      Just a test
 
96
INSERT INTO t9 VALUES (2);
 
97
INSERT INTO t1_nodef VALUES (1,2);
 
98
SHOW SLAVE STATUS;
 
99
Slave_IO_State  #
 
100
Master_Host     127.0.0.1
 
101
Master_User     root
 
102
Master_Port     MASTER_PORT
 
103
Connect_Retry   1
 
104
Master_Log_File master-bin.000001
 
105
Read_Master_Log_Pos     #
 
106
Relay_Log_File  #
 
107
Relay_Log_Pos   #
 
108
Relay_Master_Log_File   master-bin.000001
 
109
Slave_IO_Running        Yes
 
110
Slave_SQL_Running       No
 
111
Replicate_Do_DB 
 
112
Replicate_Ignore_DB     
 
113
Replicate_Do_Table      
 
114
Replicate_Ignore_Table  
 
115
Replicate_Wild_Do_Table 
 
116
Replicate_Wild_Ignore_Table     
 
117
Last_Errno      1364
 
118
Last_Error      Error in Write_rows event: error during transaction execution on table test.t1_nodef
 
119
Skip_Counter    0
 
120
Exec_Master_Log_Pos     #
 
121
Relay_Log_Space #
 
122
Until_Condition None
 
123
Until_Log_File  
 
124
Until_Log_Pos   0
 
125
Master_SSL_Allowed      No
 
126
Master_SSL_CA_File      
 
127
Master_SSL_CA_Path      
 
128
Master_SSL_Cert 
 
129
Master_SSL_Cipher       
 
130
Master_SSL_Key  
 
131
Seconds_Behind_Master   #
 
132
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
 
133
START SLAVE;
 
134
INSERT INTO t9 VALUES (2);
 
135
INSERT INTO t2 VALUES (2,4);
 
136
SHOW SLAVE STATUS;
 
137
Slave_IO_State  #
 
138
Master_Host     127.0.0.1
 
139
Master_User     root
 
140
Master_Port     MASTER_PORT
 
141
Connect_Retry   1
 
142
Master_Log_File master-bin.000001
 
143
Read_Master_Log_Pos     #
 
144
Relay_Log_File  #
 
145
Relay_Log_Pos   #
 
146
Relay_Master_Log_File   master-bin.000001
 
147
Slave_IO_Running        Yes
 
148
Slave_SQL_Running       No
 
149
Replicate_Do_DB 
 
150
Replicate_Ignore_DB     
 
151
Replicate_Do_Table      
 
152
Replicate_Ignore_Table  
 
153
Replicate_Wild_Do_Table 
 
154
Replicate_Wild_Ignore_Table     
 
155
Last_Errno      1514
 
156
Last_Error      Table width mismatch - received 2 columns, test.t2 has 1 columns
 
157
Skip_Counter    0
 
158
Exec_Master_Log_Pos     #
 
159
Relay_Log_Space #
 
160
Until_Condition None
 
161
Until_Log_File  
 
162
Until_Log_Pos   0
 
163
Master_SSL_Allowed      No
 
164
Master_SSL_CA_File      
 
165
Master_SSL_CA_Path      
 
166
Master_SSL_Cert 
 
167
Master_SSL_Cipher       
 
168
Master_SSL_Key  
 
169
Seconds_Behind_Master   #
 
170
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
 
171
START SLAVE;
 
172
INSERT INTO t9 VALUES (4);
 
173
INSERT INTO t4 VALUES (4);
 
174
SHOW SLAVE STATUS;
 
175
Slave_IO_State  #
 
176
Master_Host     127.0.0.1
 
177
Master_User     root
 
178
Master_Port     MASTER_PORT
 
179
Connect_Retry   1
 
180
Master_Log_File master-bin.000001
 
181
Read_Master_Log_Pos     #
 
182
Relay_Log_File  #
 
183
Relay_Log_Pos   #
 
184
Relay_Master_Log_File   master-bin.000001
 
185
Slave_IO_Running        Yes
 
186
Slave_SQL_Running       No
 
187
Replicate_Do_DB 
 
188
Replicate_Ignore_DB     
 
189
Replicate_Do_Table      
 
190
Replicate_Ignore_Table  
 
191
Replicate_Wild_Do_Table 
 
192
Replicate_Wild_Ignore_Table     
 
193
Last_Errno      1514
 
194
Last_Error      Column 0 type mismatch - received type 3, test.t4 has type 4
 
195
Skip_Counter    0
 
196
Exec_Master_Log_Pos     #
 
197
Relay_Log_Space #
 
198
Until_Condition None
 
199
Until_Log_File  
 
200
Until_Log_Pos   0
 
201
Master_SSL_Allowed      No
 
202
Master_SSL_CA_File      
 
203
Master_SSL_CA_Path      
 
204
Master_SSL_Cert 
 
205
Master_SSL_Cipher       
 
206
Master_SSL_Key  
 
207
Seconds_Behind_Master   #
 
208
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
 
209
START SLAVE;
 
210
INSERT INTO t9 VALUES (5);
 
211
INSERT INTO t5 VALUES (5,10,25);
 
212
SHOW SLAVE STATUS;
 
213
Slave_IO_State  #
 
214
Master_Host     127.0.0.1
 
215
Master_User     root
 
216
Master_Port     MASTER_PORT
 
217
Connect_Retry   1
 
218
Master_Log_File master-bin.000001
 
219
Read_Master_Log_Pos     #
 
220
Relay_Log_File  #
 
221
Relay_Log_Pos   #
 
222
Relay_Master_Log_File   master-bin.000001
 
223
Slave_IO_Running        Yes
 
224
Slave_SQL_Running       No
 
225
Replicate_Do_DB 
 
226
Replicate_Ignore_DB     
 
227
Replicate_Do_Table      
 
228
Replicate_Ignore_Table  
 
229
Replicate_Wild_Do_Table 
 
230
Replicate_Wild_Ignore_Table     
 
231
Last_Errno      1514
 
232
Last_Error      Column 1 type mismatch - received type 3, test.t5 has type 4
 
233
Skip_Counter    0
 
234
Exec_Master_Log_Pos     #
 
235
Relay_Log_Space #
 
236
Until_Condition None
 
237
Until_Log_File  
 
238
Until_Log_Pos   0
 
239
Master_SSL_Allowed      No
 
240
Master_SSL_CA_File      
 
241
Master_SSL_CA_Path      
 
242
Master_SSL_Cert 
 
243
Master_SSL_Cipher       
 
244
Master_SSL_Key  
 
245
Seconds_Behind_Master   #
 
246
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
 
247
START SLAVE;
 
248
INSERT INTO t9 VALUES (6);
 
249
INSERT INTO t6 VALUES (6,12,36);
 
250
SHOW SLAVE STATUS;
 
251
Slave_IO_State  #
 
252
Master_Host     127.0.0.1
 
253
Master_User     root
 
254
Master_Port     MASTER_PORT
 
255
Connect_Retry   1
 
256
Master_Log_File master-bin.000001
 
257
Read_Master_Log_Pos     #
 
258
Relay_Log_File  #
 
259
Relay_Log_Pos   #
 
260
Relay_Master_Log_File   master-bin.000001
 
261
Slave_IO_Running        Yes
 
262
Slave_SQL_Running       No
 
263
Replicate_Do_DB 
 
264
Replicate_Ignore_DB     
 
265
Replicate_Do_Table      
 
266
Replicate_Ignore_Table  
 
267
Replicate_Wild_Do_Table 
 
268
Replicate_Wild_Ignore_Table     
 
269
Last_Errno      1514
 
270
Last_Error      Column 2 type mismatch - received type 3, test.t6 has type 4
 
271
Skip_Counter    0
 
272
Exec_Master_Log_Pos     #
 
273
Relay_Log_Space #
 
274
Until_Condition None
 
275
Until_Log_File  
 
276
Until_Log_Pos   0
 
277
Master_SSL_Allowed      No
 
278
Master_SSL_CA_File      
 
279
Master_SSL_CA_Path      
 
280
Master_SSL_Cert 
 
281
Master_SSL_Cipher       
 
282
Master_SSL_Key  
 
283
Seconds_Behind_Master   #
 
284
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
 
285
START SLAVE;
 
286
DROP TABLE IF EXISTS t1_int,t1_bit,t1_char,t1_nodef;
 
287
DROP TABLE IF EXISTS t2,t3,t4,t5,t6,t9;
 
288
SET @@global.sql_mode= @my_sql_mode;