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
b756f55a
Commit
b756f55a
authored
May 23, 2006
by
mikael@c-870ae253.1238-1-64736c10.cust.bredbandsbolaget.se
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG#17455: Wrong results from Repair/Optimize .. table for partitioned tables
parent
e9056d85
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
4 deletions
+25
-4
mysql-test/r/partition.result
mysql-test/r/partition.result
+10
-0
mysql-test/t/partition.test
mysql-test/t/partition.test
+13
-0
sql/ha_partition.cc
sql/ha_partition.cc
+2
-4
No files found.
mysql-test/r/partition.result
View file @
b756f55a
...
...
@@ -886,4 +886,14 @@ s1
2
3
drop table t1;
create table t1 (a int)
engine=MEMORY
partition by key (a);
REPAIR TABLE t1;
Table Op Msg_type Msg_text
test.t1 repair note The storage engine for the table doesn't support repair
OPTIMIZE TABLE t1;
Table Op Msg_type Msg_text
test.t1 optimize note The storage engine for the table doesn't support optimize
drop table t1;
End of 5.1 tests
mysql-test/t/partition.test
View file @
b756f55a
...
...
@@ -1009,4 +1009,17 @@ select auto_increment from information_schema.tables where table_name='t1';
select
*
from
t1
;
drop
table
t1
;
#
# Bug 17455 Partitions: Wrong message and error when using Repair/Optimize
# table on partitioned table
#
create
table
t1
(
a
int
)
engine
=
MEMORY
partition
by
key
(
a
);
REPAIR
TABLE
t1
;
OPTIMIZE
TABLE
t1
;
drop
table
t1
;
--
echo
End
of
5.1
tests
sql/ha_partition.cc
View file @
b756f55a
...
...
@@ -1108,8 +1108,7 @@ int ha_partition::handle_opt_partitions(THD *thd, HA_CHECK_OPT *check_opt,
part
));
if
((
error
=
handle_opt_part
(
thd
,
check_opt
,
m_file
[
part
],
flag
)))
{
my_error
(
ER_GET_ERRNO
,
MYF
(
0
),
error
);
DBUG_RETURN
(
TRUE
);
DBUG_RETURN
(
error
);
}
}
while
(
++
j
<
no_subparts
);
}
...
...
@@ -1118,8 +1117,7 @@ int ha_partition::handle_opt_partitions(THD *thd, HA_CHECK_OPT *check_opt,
DBUG_PRINT
(
"info"
,
(
"Optimize partition %u"
,
i
));
if
((
error
=
handle_opt_part
(
thd
,
check_opt
,
m_file
[
i
],
flag
)))
{
my_error
(
ER_GET_ERRNO
,
MYF
(
0
),
error
);
DBUG_RETURN
(
TRUE
);
DBUG_RETURN
(
error
);
}
}
}
...
...
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