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
0c0b0e36
Commit
0c0b0e36
authored
Mar 23, 2006
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added new test cases for the bug #16806
parent
66786c07
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
0 deletions
+43
-0
mysql-test/r/ndb_partition_key.result
mysql-test/r/ndb_partition_key.result
+18
-0
mysql-test/t/ndb_partition_key.test
mysql-test/t/ndb_partition_key.test
+25
-0
No files found.
mysql-test/r/ndb_partition_key.result
View file @
0c0b0e36
...
...
@@ -165,3 +165,21 @@ ENGINE=NDB
PARTITION BY KEY(c3) PARTITIONS 5;
ALTER TABLE t1 COALESCE PARTITION 4;
DROP TABLE t1;
CREATE TABLE t1 (
c1 MEDIUMINT NOT NULL AUTO_INCREMENT,
c2 TEXT NOT NULL,
c3 INT NOT NULL,
PRIMARY KEY(c1,c3))
ENGINE=NDB
PARTITION BY KEY(c3) PARTITIONS 5;
ALTER TABLE t1 ADD COLUMN c4 INT AFTER c1;
DROP TABLE t1;
CREATE TABLE t1 (
c1 MEDIUMINT NOT NULL AUTO_INCREMENT,
c2 TEXT NOT NULL,
c3 INT NOT NULL,
PRIMARY KEY(c1,c3))
ENGINE=NDB
PARTITION BY KEY(c3);
ALTER TABLE t1 ADD COLUMN c4 INT AFTER c1;
DROP TABLE t1;
mysql-test/t/ndb_partition_key.test
View file @
0c0b0e36
...
...
@@ -153,3 +153,28 @@ b'0',
ALTER
TABLE
t1
COALESCE
PARTITION
4
;
DROP
TABLE
t1
;
#
# BUG 16806: ALTER TABLE fails
#
CREATE
TABLE
t1
(
c1
MEDIUMINT
NOT
NULL
AUTO_INCREMENT
,
c2
TEXT
NOT
NULL
,
c3
INT
NOT
NULL
,
PRIMARY
KEY
(
c1
,
c3
))
ENGINE
=
NDB
PARTITION
BY
KEY
(
c3
)
PARTITIONS
5
;
ALTER
TABLE
t1
ADD
COLUMN
c4
INT
AFTER
c1
;
DROP
TABLE
t1
;
CREATE
TABLE
t1
(
c1
MEDIUMINT
NOT
NULL
AUTO_INCREMENT
,
c2
TEXT
NOT
NULL
,
c3
INT
NOT
NULL
,
PRIMARY
KEY
(
c1
,
c3
))
ENGINE
=
NDB
PARTITION
BY
KEY
(
c3
);
ALTER
TABLE
t1
ADD
COLUMN
c4
INT
AFTER
c1
;
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