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
0bd08dd4
Commit
0bd08dd4
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#19304: Merge handler allowed in partitioned tables
parent
4ba1a4b3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
7 deletions
+23
-7
mysql-test/r/partition.result
mysql-test/r/partition.result
+4
-0
mysql-test/t/partition.test
mysql-test/t/partition.test
+8
-0
sql/partition_info.cc
sql/partition_info.cc
+8
-7
sql/share/errmsg.txt
sql/share/errmsg.txt
+3
-0
No files found.
mysql-test/r/partition.result
View file @
0bd08dd4
...
@@ -886,4 +886,8 @@ s1
...
@@ -886,4 +886,8 @@ s1
2
2
3
3
drop table t1;
drop table t1;
create table t1 (a int)
partition by key (a)
(partition p0 engine = MERGE);
ERROR HY000: MyISAM Merge handler cannot be used in partitioned tables
End of 5.1 tests
End of 5.1 tests
mysql-test/t/partition.test
View file @
0bd08dd4
...
@@ -1009,4 +1009,12 @@ select auto_increment from information_schema.tables where table_name='t1';
...
@@ -1009,4 +1009,12 @@ select auto_increment from information_schema.tables where table_name='t1';
select
*
from
t1
;
select
*
from
t1
;
drop
table
t1
;
drop
table
t1
;
#
# BUG 19304 Partitions: MERGE handler not allowed in partitioned tables
#
--
error
ER_PARTITION_MERGE_ERROR
create
table
t1
(
a
int
)
partition
by
key
(
a
)
(
partition
p0
engine
=
MERGE
);
--
echo
End
of
5.1
tests
--
echo
End
of
5.1
tests
sql/partition_info.cc
View file @
0bd08dd4
...
@@ -431,18 +431,22 @@ char *partition_info::has_unique_names()
...
@@ -431,18 +431,22 @@ char *partition_info::has_unique_names()
bool
partition_info
::
check_engine_mix
(
handlerton
**
engine_array
,
uint
no_parts
)
bool
partition_info
::
check_engine_mix
(
handlerton
**
engine_array
,
uint
no_parts
)
{
{
uint
i
=
0
;
uint
i
=
0
;
bool
result
=
FALSE
;
DBUG_ENTER
(
"partition_info::check_engine_mix"
);
DBUG_ENTER
(
"partition_info::check_engine_mix"
);
do
do
{
{
if
(
engine_array
[
i
]
!=
engine_array
[
0
])
if
(
engine_array
[
i
]
!=
engine_array
[
0
])
{
{
result
=
TRUE
;
my_error
(
ER_MIX_HANDLER_ERROR
,
MYF
(
0
))
;
break
;
DBUG_RETURN
(
TRUE
)
;
}
}
}
while
(
++
i
<
no_parts
);
}
while
(
++
i
<
no_parts
);
DBUG_RETURN
(
result
);
if
(
!
strcmp
(
engine_array
[
0
]
->
name
,
"MRG_MYISAM"
))
{
my_error
(
ER_PARTITION_MERGE_ERROR
,
MYF
(
0
));
DBUG_RETURN
(
TRUE
);
}
DBUG_RETURN
(
FALSE
);
}
}
...
@@ -756,10 +760,7 @@ bool partition_info::check_partition_info(handlerton **eng_type,
...
@@ -756,10 +760,7 @@ bool partition_info::check_partition_info(handlerton **eng_type,
}
while
(
++
i
<
no_parts
);
}
while
(
++
i
<
no_parts
);
}
}
if
(
unlikely
(
partition_info
::
check_engine_mix
(
engine_array
,
part_count
)))
if
(
unlikely
(
partition_info
::
check_engine_mix
(
engine_array
,
part_count
)))
{
my_error
(
ER_MIX_HANDLER_ERROR
,
MYF
(
0
));
goto
end
;
goto
end
;
}
if
(
eng_type
)
if
(
eng_type
)
*
eng_type
=
(
handlerton
*
)
engine_array
[
0
];
*
eng_type
=
(
handlerton
*
)
engine_array
[
0
];
...
...
sql/share/errmsg.txt
View file @
0bd08dd4
...
@@ -5840,3 +5840,6 @@ ER_NULL_IN_VALUES_LESS_THAN
...
@@ -5840,3 +5840,6 @@ ER_NULL_IN_VALUES_LESS_THAN
ER_WRONG_PARTITION_NAME
ER_WRONG_PARTITION_NAME
eng "Incorrect partition name"
eng "Incorrect partition name"
swe "Felaktigt partitionsnamn"
swe "Felaktigt partitionsnamn"
ER_PARTITION_MERGE_ERROR
eng "MyISAM Merge handler cannot be used in partitioned tables"
swe "MyISAM Merge kan inte anndas i en partitionerad tabell"
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