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
7350f483
Commit
7350f483
authored
Jan 23, 2006
by
reggie@linux.site
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG# 16534: just a change to the test suite showing that it's fixed.
This bug was fixed as part of the large WL 2604 push.
parent
869661ff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
0 deletions
+30
-0
mysql-test/r/partition_mgm_err.result
mysql-test/r/partition_mgm_err.result
+13
-0
mysql-test/t/partition_mgm_err.test
mysql-test/t/partition_mgm_err.test
+17
-0
No files found.
mysql-test/r/partition_mgm_err.result
View file @
7350f483
...
...
@@ -112,3 +112,16 @@ ALTER TABLE t1 DROP PARTITION x1;
ALTER TABLE t1 DROP PARTITION x0;
ERROR HY000: Cannot remove all partitions, use DROP TABLE instead
DROP TABLE t1;
CREATE TABLE t1 ( id INT NOT NULL,
fname VARCHAR(50) NOT NULL,
lname VARCHAR(50) NOT NULL,
hired DATE NOT NULL )
PARTITION BY RANGE(YEAR(hired)) (
PARTITION p1 VALUES LESS THAN (1991),
PARTITION p2 VALUES LESS THAN (1996),
PARTITION p3 VALUES LESS THAN (2001),
PARTITION p4 VALUES LESS THAN (2005));
ALTER TABLE t1 ADD PARTITION (
PARTITION p5 VALUES LESS THAN (2010),
PARTITION p6 VALUES LESS THAN MAXVALUE);
DROP TABLE t1;
mysql-test/t/partition_mgm_err.test
View file @
7350f483
...
...
@@ -167,3 +167,20 @@ ALTER TABLE t1 DROP PARTITION x1;
ALTER
TABLE
t1
DROP
PARTITION
x0
;
DROP
TABLE
t1
;
#
# Bug# 16534 - Trying to add multiple partitions crashes server
#
CREATE
TABLE
t1
(
id
INT
NOT
NULL
,
fname
VARCHAR
(
50
)
NOT
NULL
,
lname
VARCHAR
(
50
)
NOT
NULL
,
hired
DATE
NOT
NULL
)
PARTITION
BY
RANGE
(
YEAR
(
hired
))
(
PARTITION
p1
VALUES
LESS
THAN
(
1991
),
PARTITION
p2
VALUES
LESS
THAN
(
1996
),
PARTITION
p3
VALUES
LESS
THAN
(
2001
),
PARTITION
p4
VALUES
LESS
THAN
(
2005
));
ALTER
TABLE
t1
ADD
PARTITION
(
PARTITION
p5
VALUES
LESS
THAN
(
2010
),
PARTITION
p6
VALUES
LESS
THAN
MAXVALUE
);
DROP
TABLE
t1
;
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