Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
7ce8a82f
Commit
7ce8a82f
authored
Jul 25, 2024
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make rename test to work with InnoDB too
parent
0d7db464
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
62 additions
and
19 deletions
+62
-19
mysql-test/main/vector,myisam.rdiff
mysql-test/main/vector,myisam.rdiff
+42
-0
mysql-test/main/vector.result
mysql-test/main/vector.result
+11
-17
mysql-test/main/vector.test
mysql-test/main/vector.test
+9
-2
No files found.
mysql-test/main/vector,myisam.rdiff
View file @
7ce8a82f
...
...
@@ -31,3 +31,45 @@
insert t1 (id, v) values (1, x'e360d63ebe554f3fcdbc523f4522193f5236083d');
select id, hex(v) from t1;
id hex(v)
@@ -324,26 +346,32 @@
# Test RENAME TABLE with vector index
create table t1 (id int auto_increment primary key, v blob not null, vector index (v));
db.opt
-t1#i#01.ibd
+t1#i#01.MYD
+t1#i#01.MYI
+t1.MYD
+t1.MYI
t1.frm
-t1.ibd
rename table t1 to t2;
db.opt
-t2#i#01.ibd
+t2#i#01.MYD
+t2#i#01.MYI
+t2.MYD
+t2.MYI
t2.frm
-t2.ibd
create database test1;
rename table test.t2 to test1.t1;
db.opt
-t1#i#01.ibd
+t1#i#01.MYD
+t1#i#01.MYI
+t1.MYD
+t1.MYI
t1.frm
-t1.ibd
-call mtr.add_suppression('InnoDB: Cannot rename.*because the source file does not exist');
-call mtr.add_suppression('InnoDB: File ./test1/t1#i#01.ibd was not found');
rename table test1.t1 to test1.t2;
Got one of the listed errors
db.opt
+t1#i#01.MYI
+t1.MYD
+t1.MYI
t1.frm
-t1.ibd
drop database test1;
db.opt
mysql-test/main/vector.result
View file @
7ce8a82f
...
...
@@ -322,34 +322,28 @@ t1 CREATE TABLE `t1` (
drop table t1;
db.opt
# Test RENAME TABLE with vector index
create table t1 (id int auto_increment primary key, v blob not null, vector index (v))
engine=MyISAM
;
create table t1 (id int auto_increment primary key, v blob not null, vector index (v));
db.opt
t1#i#01.MYD
t1#i#01.MYI
t1.MYD
t1.MYI
t1#i#01.ibd
t1.frm
t1.ibd
rename table t1 to t2;
db.opt
t2#i#01.MYD
t2#i#01.MYI
t2.MYD
t2.MYI
t2#i#01.ibd
t2.frm
t2.ibd
create database test1;
rename table test.t2 to test1.t1;
db.opt
t1#i#01.MYD
t1#i#01.MYI
t1.MYD
t1.MYI
t1#i#01.ibd
t1.frm
t1.ibd
call mtr.add_suppression('InnoDB: Cannot rename.*because the source file does not exist');
call mtr.add_suppression('InnoDB: File ./test1/t1#i#01.ibd was not found');
rename table test1.t1 to test1.t2;
ERROR HY000: Error on rename of './test1/t1#i#01.MYD' to './test1/t2#i#01.MYD' (Errcode: 2 "No such file or directory")
Got one of the listed errors
db.opt
t1#i#01.MYI
t1.MYD
t1.MYI
t1.frm
t1.ibd
drop database test1;
db.opt
mysql-test/main/vector.test
View file @
7ce8a82f
...
...
@@ -123,7 +123,7 @@ drop table t1;
list_files
$datadir
/
test
;
--
echo
# Test RENAME TABLE with vector index
create
table
t1
(
id
int
auto_increment
primary
key
,
v
blob
not
null
,
vector
index
(
v
))
engine
=
MyISAM
;
create
table
t1
(
id
int
auto_increment
primary
key
,
v
blob
not
null
,
vector
index
(
v
));
list_files
$datadir
/
test
;
rename
table
t1
to
t2
;
list_files
$datadir
/
test
;
...
...
@@ -131,8 +131,15 @@ create database test1;
rename
table
test
.
t2
to
test1
.
t1
;
list_files
$datadir
/
test1
;
if
(
$MTR_COMBINATION_MYISAM
)
{
remove_file
$datadir
/
test1
/
t1
#i#01.MYD;
--
error
7
}
if
(
$MTR_COMBINATION_INNODB
)
{
call
mtr
.
add_suppression
(
'InnoDB: Cannot rename.*because the source file does not exist'
);
call
mtr
.
add_suppression
(
'InnoDB: File ./test1/t1#i#01.ibd was not found'
);
remove_file
$datadir
/
test1
/
t1
#i#01.ibd;
}
--
error
7
,
ER_ERROR_ON_RENAME
rename
table
test1
.
t1
to
test1
.
t2
;
list_files
$datadir
/
test1
;
drop
database
test1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment