File tree Expand file tree Collapse file tree 3 files changed +62
-19
lines changed Expand file tree Collapse file tree 3 files changed +62
-19
lines changed Original file line number Diff line number Diff line change 31
31
insert t1 (id, v) values (1, x'e360d63ebe554f3fcdbc523f4522193f5236083d');
32
32
select id, hex(v) from t1;
33
33
id hex(v)
34
+ @@ -324,26 +346,32 @@
35
+ # Test RENAME TABLE with vector index
36
+ create table t1 (id int auto_increment primary key, v blob not null, vector index (v));
37
+ db.opt
38
+ -t1#i#01.ibd
39
+ +t1#i#01.MYD
40
+ +t1#i#01.MYI
41
+ +t1.MYD
42
+ +t1.MYI
43
+ t1.frm
44
+ -t1.ibd
45
+ rename table t1 to t2;
46
+ db.opt
47
+ -t2#i#01.ibd
48
+ +t2#i#01.MYD
49
+ +t2#i#01.MYI
50
+ +t2.MYD
51
+ +t2.MYI
52
+ t2.frm
53
+ -t2.ibd
54
+ create database test1;
55
+ rename table test.t2 to test1.t1;
56
+ db.opt
57
+ -t1#i#01.ibd
58
+ +t1#i#01.MYD
59
+ +t1#i#01.MYI
60
+ +t1.MYD
61
+ +t1.MYI
62
+ t1.frm
63
+ -t1.ibd
64
+ -call mtr.add_suppression('InnoDB: Cannot rename.*because the source file does not exist');
65
+ -call mtr.add_suppression('InnoDB: File ./test1/t1#i#01.ibd was not found');
66
+ rename table test1.t1 to test1.t2;
67
+ Got one of the listed errors
68
+ db.opt
69
+ +t1#i#01.MYI
70
+ +t1.MYD
71
+ +t1.MYI
72
+ t1.frm
73
+ -t1.ibd
74
+ drop database test1;
75
+ db.opt
Original file line number Diff line number Diff line change @@ -322,34 +322,28 @@ t1 CREATE TABLE `t1` (
322
322
drop table t1;
323
323
db.opt
324
324
# Test RENAME TABLE with vector index
325
- create table t1 (id int auto_increment primary key, v blob not null, vector index (v)) engine=MyISAM ;
325
+ create table t1 (id int auto_increment primary key, v blob not null, vector index (v));
326
326
db.opt
327
- t1#i#01.MYD
328
- t1#i#01.MYI
329
- t1.MYD
330
- t1.MYI
327
+ t1#i#01.ibd
331
328
t1.frm
329
+ t1.ibd
332
330
rename table t1 to t2;
333
331
db.opt
334
- t2#i#01.MYD
335
- t2#i#01.MYI
336
- t2.MYD
337
- t2.MYI
332
+ t2#i#01.ibd
338
333
t2.frm
334
+ t2.ibd
339
335
create database test1;
340
336
rename table test.t2 to test1.t1;
341
337
db.opt
342
- t1#i#01.MYD
343
- t1#i#01.MYI
344
- t1.MYD
345
- t1.MYI
338
+ t1#i#01.ibd
346
339
t1.frm
340
+ t1.ibd
341
+ call mtr.add_suppression('InnoDB: Cannot rename.*because the source file does not exist');
342
+ call mtr.add_suppression('InnoDB: File ./test1/t1#i#01.ibd was not found');
347
343
rename table test1.t1 to test1.t2;
348
- ERROR HY000: Error on rename of './test1/t1#i#01.MYD' to './test1/t2#i#01.MYD' (Errcode: 2 "No such file or directory")
344
+ Got one of the listed errors
349
345
db.opt
350
- t1#i#01.MYI
351
- t1.MYD
352
- t1.MYI
353
346
t1.frm
347
+ t1.ibd
354
348
drop database test1;
355
349
db.opt
Original file line number Diff line number Diff line change @@ -123,16 +123,23 @@ drop table t1;
123
123
list_files $datadir/test;
124
124
125
125
--echo # Test RENAME TABLE with vector index
126
- create table t1 (id int auto_increment primary key, v blob not null, vector index (v)) engine=MyISAM ;
126
+ create table t1 (id int auto_increment primary key, v blob not null, vector index (v));
127
127
list_files $datadir/test;
128
128
rename table t1 to t2;
129
129
list_files $datadir/test;
130
130
create database test1;
131
131
rename table test.t2 to test1.t1;
132
132
list_files $datadir/test1;
133
133
134
+ if ($MTR_COMBINATION_MYISAM) {
134
135
remove_file $datadir/test1/t1#i#01.MYD;
135
- --error 7
136
+ }
137
+ if ($MTR_COMBINATION_INNODB) {
138
+ call mtr.add_suppression('InnoDB: Cannot rename.*because the source file does not exist');
139
+ call mtr.add_suppression('InnoDB: File ./test1/t1#i#01.ibd was not found');
140
+ remove_file $datadir/test1/t1#i#01.ibd;
141
+ }
142
+ --error 7,ER_ERROR_ON_RENAME
136
143
rename table test1.t1 to test1.t2;
137
144
list_files $datadir/test1;
138
145
drop database test1;
You can’t perform that action at this time.
0 commit comments