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
ac10cffe
Commit
ac10cffe
authored
Mar 22, 2006
by
pappa@c-8808e253.1238-1-64736c10.cust.bredbandsbolaget.se
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OPTIMIZE, ANALYZE, CHECK, REPAIR and REBUILD only supported if fast_alter_partition flag set
parent
05105a02
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
1 deletion
+39
-1
mysql-test/r/ndb_partition_key.result
mysql-test/r/ndb_partition_key.result
+14
-0
mysql-test/t/ndb_partition_key.test
mysql-test/t/ndb_partition_key.test
+19
-0
sql/handler.h
sql/handler.h
+1
-1
sql/sql_partition.cc
sql/sql_partition.cc
+5
-0
No files found.
mysql-test/r/ndb_partition_key.result
View file @
ac10cffe
...
...
@@ -165,3 +165,17 @@ ENGINE=NDB
PARTITION BY KEY(c3) PARTITIONS 5;
ALTER TABLE t1 COALESCE PARTITION 4;
DROP TABLE t1;
CREATE TABLE t1 (a int primary key)
ENGINE=NDB
PARTITION BY KEY(a);
ALTER TABLE t1 OPTIMIZE PARTITION p0;
ERROR HY000: Table storage engine for 't1' doesn't have this option
ALTER TABLE t1 CHECK PARTITION p0;
ERROR HY000: Table storage engine for 't1' doesn't have this option
ALTER TABLE t1 REPAIR PARTITION p0;
ERROR HY000: Table storage engine for 't1' doesn't have this option
ALTER TABLE t1 ANALYZE PARTITION p0;
ERROR HY000: Table storage engine for 't1' doesn't have this option
ALTER TABLE t1 REBUILD PARTITION p0;
ERROR HY000: Table storage engine for 't1' doesn't have this option
DROP TABLE t1;
mysql-test/t/ndb_partition_key.test
View file @
ac10cffe
...
...
@@ -153,3 +153,22 @@ b'0',
ALTER
TABLE
t1
COALESCE
PARTITION
4
;
DROP
TABLE
t1
;
#
# Bug 16822: OPTIMIZE TABLE hangs test
#
CREATE
TABLE
t1
(
a
int
primary
key
)
ENGINE
=
NDB
PARTITION
BY
KEY
(
a
);
--
error
1031
ALTER
TABLE
t1
OPTIMIZE
PARTITION
p0
;
--
error
1031
ALTER
TABLE
t1
CHECK
PARTITION
p0
;
--
error
1031
ALTER
TABLE
t1
REPAIR
PARTITION
p0
;
--
error
1031
ALTER
TABLE
t1
ANALYZE
PARTITION
p0
;
--
error
1031
ALTER
TABLE
t1
REBUILD
PARTITION
p0
;
DROP
TABLE
t1
;
sql/handler.h
View file @
ac10cffe
...
...
@@ -1387,7 +1387,7 @@ public:
ulonglong
*
deleted
,
const
void
*
pack_frm_data
,
uint
pack_frm_len
)
{
return
HA_ERR_WRONG_COMMAND
;
}
{
print_error
(
HA_ERR_WRONG_COMMAND
,
MYF
(
0
));
return
TRUE
;
}
virtual
int
drop_partitions
(
const
char
*
path
)
{
return
HA_ERR_WRONG_COMMAND
;
}
virtual
int
rename_partitions
(
const
char
*
path
)
...
...
sql/sql_partition.cc
View file @
ac10cffe
...
...
@@ -4499,6 +4499,11 @@ that are reorganised.
my_error
(
ER_DROP_PARTITION_NON_EXISTENT
,
MYF
(
0
),
ptr
);
DBUG_RETURN
(
TRUE
);
}
if
(
!
(
*
fast_alter_partition
))
{
table
->
file
->
print_error
(
HA_ERR_WRONG_COMMAND
,
MYF
(
0
));
DBUG_RETURN
(
TRUE
);
}
}
else
if
(
alter_info
->
flags
&
ALTER_COALESCE_PARTITION
)
{
...
...
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