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
ff0b3021
Commit
ff0b3021
authored
Jun 11, 2011
by
Michael Widenius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated to new error messages for partitions when .par file is missing
parent
6d6bde66
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
mysql-test/r/partition_error.result
mysql-test/r/partition_error.result
+3
-2
mysql-test/t/partition_error.test
mysql-test/t/partition_error.test
+5
-2
No files found.
mysql-test/r/partition_error.result
View file @
ff0b3021
...
...
@@ -657,15 +657,16 @@ CREATE TABLE t1 (a INT) PARTITION BY HASH (a);
FLUSH TABLES;
CHECK TABLE t1;
Table Op Msg_type Msg_text
test.t1 check Error File './test/t1.par' not found (Errcode: 2)
test.t1 check Error Failed to read from the .par file
test.t1 check Error Incorrect information in file: './test/t1.frm'
test.t1 check error Corrupt
SELECT * FROM t1;
ERROR HY000: F
ailed to read from the .par file
ERROR HY000: F
ile './test/t1.par' not found (Errcode: 2)
# Note that it is currently impossible to drop a partitioned table
# without the .par file
DROP TABLE t1;
ERROR
42S02: Unknown table 't1'
ERROR
HY000: File './test/t1.par' not found (Errcode: 2)
#
# Bug#49477: Assertion `0' failed in ha_partition.cc:5530
# with temporary table and partitions
...
...
mysql-test/t/partition_error.test
View file @
ff0b3021
...
...
@@ -695,12 +695,15 @@ CREATE TABLE t1 (a INT) PARTITION BY HASH (a);
FLUSH
TABLES
;
--
remove_file
$MYSQLD_DATADIR
/
test
/
t1
.
par
--
replace_result
$MYSQLD_DATADIR
./
--
replace_result
\\
/
CHECK
TABLE
t1
;
--
error
ER_UNKNOWN_ERROR
--
replace_result
\\
/
--
error
29
SELECT
*
FROM
t1
;
--
echo
# Note that it is currently impossible to drop a partitioned table
--
echo
# without the .par file
--
error
ER_BAD_TABLE_ERROR
--
replace_result
\\
/
--
error
29
DROP
TABLE
t1
;
--
remove_file
$MYSQLD_DATADIR
/
test
/
t1
.
frm
--
remove_file
$MYSQLD_DATADIR
/
test
/
t1
#P#p0.MYI
...
...
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