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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
41e46f32
Commit
41e46f32
authored
Dec 15, 2011
by
Mattias Jonsson
Browse files
Options
Browse Files
Download
Plain Diff
merge. Disabled the added test in merge.test from 5.1.
parents
7a266474
e5cb2879
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
60 additions
and
0 deletions
+60
-0
mysql-test/r/merge.result
mysql-test/r/merge.result
+5
-0
mysql-test/r/mysqlcheck.result
mysql-test/r/mysqlcheck.result
+1
-0
mysql-test/t/merge.test
mysql-test/t/merge.test
+53
-0
mysql-test/t/mysqlcheck.test
mysql-test/t/mysqlcheck.test
+1
-0
No files found.
mysql-test/r/merge.result
View file @
41e46f32
...
@@ -2403,6 +2403,11 @@ REPAIR TABLE m1;
...
@@ -2403,6 +2403,11 @@ REPAIR TABLE m1;
Table Op Msg_type Msg_text
Table Op Msg_type Msg_text
test.m1 repair note The storage engine for the table doesn't support repair
test.m1 repair note The storage engine for the table doesn't support repair
DROP TABLE m1, t1;
DROP TABLE m1, t1;
#
# BUG#11763712 - 56458: KILLING A FLUSH TABLE FOR A MERGE/CHILD
# CRASHES SERVER
#
# Disabled in 5.5 by Mattias. TODO: FIX THIS!
End of 5.1 tests
End of 5.1 tests
#
#
# An additional test case for Bug#27430 Crash in subquery code
# An additional test case for Bug#27430 Crash in subquery code
...
...
mysql-test/r/mysqlcheck.result
View file @
41e46f32
...
@@ -206,6 +206,7 @@ DROP TABLE `@`;
...
@@ -206,6 +206,7 @@ DROP TABLE `@`;
CREATE TABLE `я` (a INT) engine=myisam;
CREATE TABLE `я` (a INT) engine=myisam;
SET NAMES DEFAULT;
SET NAMES DEFAULT;
mysqlcheck --default-character-set="latin1" --databases test
mysqlcheck --default-character-set="latin1" --databases test
call mtr.add_suppression("Can't find file: '..test.@003f.frm'");
test.?
test.?
Error : Table doesn't exist
Error : Table doesn't exist
status : Operation failed
status : Operation failed
...
...
mysql-test/t/merge.test
View file @
41e46f32
...
@@ -1812,6 +1812,59 @@ REPAIR TABLE m1;
...
@@ -1812,6 +1812,59 @@ REPAIR TABLE m1;
#
#
DROP
TABLE
m1
,
t1
;
DROP
TABLE
m1
,
t1
;
--
echo
#
--
echo
# BUG#11763712 - 56458: KILLING A FLUSH TABLE FOR A MERGE/CHILD
--
echo
# CRASHES SERVER
--
echo
#
--
echo
# Disabled in 5.5 by Mattias. TODO: FIX THIS!
if
(
0
)
{
CREATE
TABLE
t1
(
a
INT
);
CREATE
TABLE
t2
(
a
INT
);
CREATE
TABLE
t3
(
a
INT
,
b
INT
);
CREATE
TABLE
m1
(
a
INT
)
ENGINE
=
MERGE
UNION
=
(
t1
,
t2
);
--
echo
# Test reopen merge parent failure
LOCK
TABLES
m1
READ
;
--
echo
# Remove 'm1' table using file operations.
remove_file
$MYSQLD_DATADIR
/
test
/
m1
.
MRG
;
remove_file
$MYSQLD_DATADIR
/
test
/
m1
.
frm
;
--
error
ER_NO_SUCH_TABLE
FLUSH
TABLES
;
UNLOCK
TABLES
;
CREATE
TABLE
m1
(
a
INT
)
ENGINE
=
MERGE
UNION
=
(
t1
,
t2
);
--
echo
# Test reopen merge child failure
LOCK
TABLES
m1
READ
;
--
echo
# Remove 't1' table using file operations.
remove_file
$MYSQLD_DATADIR
/
test
/
t1
.
frm
;
remove_file
$MYSQLD_DATADIR
/
test
/
t1
.
MYI
;
remove_file
$MYSQLD_DATADIR
/
test
/
t1
.
MYD
;
--
error
ER_NO_SUCH_TABLE
FLUSH
TABLES
;
UNLOCK
TABLES
;
CREATE
TABLE
t1
(
a
INT
);
--
echo
# Test reattach merge failure
LOCK
TABLES
m1
READ
;
--
echo
# Replace 't1' with 't3' table using file operations.
# move + remove is a work around for windows.
move_file
$MYSQLD_DATADIR
/
test
/
t1
.
frm
$MYSQLD_DATADIR
/
test
/
oldt1
.
frm
;
move_file
$MYSQLD_DATADIR
/
test
/
t1
.
MYI
$MYSQLD_DATADIR
/
test
/
oldt1
.
MYI
;
move_file
$MYSQLD_DATADIR
/
test
/
t1
.
MYD
$MYSQLD_DATADIR
/
test
/
oldt1
.
MYD
;
remove_file
$MYSQLD_DATADIR
/
test
/
oldt1
.
frm
;
remove_file
$MYSQLD_DATADIR
/
test
/
oldt1
.
MYI
;
remove_file
$MYSQLD_DATADIR
/
test
/
oldt1
.
MYD
;
copy_file
$MYSQLD_DATADIR
/
test
/
t3
.
frm
$MYSQLD_DATADIR
/
test
/
t1
.
frm
;
copy_file
$MYSQLD_DATADIR
/
test
/
t3
.
MYI
$MYSQLD_DATADIR
/
test
/
t1
.
MYI
;
copy_file
$MYSQLD_DATADIR
/
test
/
t3
.
MYD
$MYSQLD_DATADIR
/
test
/
t1
.
MYD
;
--
error
ER_CANT_REOPEN_TABLE
FLUSH
TABLES
;
UNLOCK
TABLES
;
DROP
TABLE
t1
,
t2
,
t3
,
m1
;
}
--
echo
End
of
5.1
tests
--
echo
End
of
5.1
tests
--
echo
#
--
echo
#
...
...
mysql-test/t/mysqlcheck.test
View file @
41e46f32
...
@@ -146,6 +146,7 @@ CREATE TABLE `я` (a INT) engine=myisam;
...
@@ -146,6 +146,7 @@ CREATE TABLE `я` (a INT) engine=myisam;
SET
NAMES
DEFAULT
;
SET
NAMES
DEFAULT
;
--
echo
mysqlcheck
--
default
-
character
-
set
=
"latin1"
--
databases
test
--
echo
mysqlcheck
--
default
-
character
-
set
=
"latin1"
--
databases
test
# Error returned depends on platform, replace it with "Table doesn't exist"
# Error returned depends on platform, replace it with "Table doesn't exist"
call
mtr
.
add_suppression
(
"Can't find file: '..test.@003f.frm'"
);
--
replace_result
"Can't find file: './test/@003f.frm' (errno: 22)"
"Table doesn't exist"
"Table 'test.?' doesn't exist"
"Table doesn't exist"
--
replace_result
"Can't find file: './test/@003f.frm' (errno: 22)"
"Table doesn't exist"
"Table 'test.?' doesn't exist"
"Table doesn't exist"
--
exec
$MYSQL_CHECK
--
default
-
character
-
set
=
"latin1"
--
databases
test
--
exec
$MYSQL_CHECK
--
default
-
character
-
set
=
"latin1"
--
databases
test
--
echo
mysqlcheck
--
default
-
character
-
set
=
"utf8"
--
databases
test
--
echo
mysqlcheck
--
default
-
character
-
set
=
"utf8"
--
databases
test
...
...
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