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
19b66cd2
Commit
19b66cd2
authored
Mar 13, 2006
by
mikael@zim.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG #16810: Error on coalesce partition
New test case (bug was already fixed)
parent
6b185a93
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
0 deletions
+42
-0
mysql-test/r/ndb_partition_key.result
mysql-test/r/ndb_partition_key.result
+13
-0
mysql-test/t/ndb_partition_key.test
mysql-test/t/ndb_partition_key.test
+29
-0
No files found.
mysql-test/r/ndb_partition_key.result
View file @
19b66cd2
...
@@ -89,3 +89,16 @@ ALTER TABLE t1
...
@@ -89,3 +89,16 @@ ALTER TABLE t1
PARTITION BY KEY(a)
PARTITION BY KEY(a)
(PARTITION p0 ENGINE = NDB, PARTITION p1 ENGINE = NDB);
(PARTITION p0 ENGINE = NDB, PARTITION p1 ENGINE = NDB);
drop table t1;
drop table t1;
CREATE TABLE t1 (
c1 MEDIUMINT NOT NULL AUTO_INCREMENT,
c2 TEXT NOT NULL,
c3 INT NOT NULL,
c4 BIT NOT NULL,
c5 FLOAT,
c6 VARCHAR(255),
c7 TIMESTAMP,
PRIMARY KEY(c1,c3))
ENGINE=NDB
PARTITION BY KEY(c3) PARTITIONS 5;
ALTER TABLE t1 COALESCE PARTITION 4;
DROP TABLE t1;
mysql-test/t/ndb_partition_key.test
View file @
19b66cd2
...
@@ -79,3 +79,32 @@ PARTITION BY KEY(a)
...
@@ -79,3 +79,32 @@ PARTITION BY KEY(a)
(
PARTITION
p0
ENGINE
=
NDB
,
PARTITION
p1
ENGINE
=
NDB
);
(
PARTITION
p0
ENGINE
=
NDB
,
PARTITION
p1
ENGINE
=
NDB
);
drop
table
t1
;
drop
table
t1
;
#
# BUG 16810 Out of memory when coalesce partition
#
CREATE
TABLE
t1
(
c1
MEDIUMINT
NOT
NULL
AUTO_INCREMENT
,
c2
TEXT
NOT
NULL
,
c3
INT
NOT
NULL
,
c4
BIT
NOT
NULL
,
c5
FLOAT
,
c6
VARCHAR
(
255
),
c7
TIMESTAMP
,
PRIMARY
KEY
(
c1
,
c3
))
ENGINE
=
NDB
PARTITION
BY
KEY
(
c3
)
PARTITIONS
5
;
let
$j
=
11
;
--
disable_query_log
while
(
$j
)
{
eval
INSERT
INTO
t1
VALUES
(
NULL
,
"Tested Remotely from Texas, USA"
,
$j
,
b
'0'
,
$j
.
00
,
"By JBM
$j
"
,
"2006-01-26"
);
dec
$j
;
}
--
enable_query_log
ALTER
TABLE
t1
COALESCE
PARTITION
4
;
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