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
352cc8a9
Commit
352cc8a9
authored
Nov 17, 2009
by
Mattias Jonsson
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
08e37788
2cd5f29f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
1 deletion
+19
-1
mysql-test/r/partition.result
mysql-test/r/partition.result
+7
-0
mysql-test/t/partition.test
mysql-test/t/partition.test
+11
-0
sql/sql_partition.cc
sql/sql_partition.cc
+1
-1
No files found.
mysql-test/r/partition.result
View file @
352cc8a9
...
...
@@ -56,6 +56,13 @@ t1 CREATE TABLE `t1` (
PARTITION p3 VALUES LESS THAN (733969) ENGINE = MyISAM,
PARTITION pmax VALUES LESS THAN MAXVALUE ENGINE = MyISAM) */
DROP TABLE t1;
create table t1 (a int NOT NULL, b varchar(5) NOT NULL)
default charset=utf8
partition by list (a)
subpartition by key (b)
(partition p0 values in (1),
partition p1 values in (2));
drop table t1;
create table t1 (a int, b int, key(a))
partition by list (a)
( partition p0 values in (1),
...
...
mysql-test/t/partition.test
View file @
352cc8a9
...
...
@@ -70,6 +70,17 @@ SELECT * FROM t1;
SHOW
CREATE
TABLE
t1
;
DROP
TABLE
t1
;
#
# Bug#45904: Error when CHARSET=utf8 and subpartitioning
#
create
table
t1
(
a
int
NOT
NULL
,
b
varchar
(
5
)
NOT
NULL
)
default
charset
=
utf8
partition
by
list
(
a
)
subpartition
by
key
(
b
)
(
partition
p0
values
in
(
1
),
partition
p1
values
in
(
2
));
drop
table
t1
;
#
# Bug#44059: rec_per_key on empty partition gives weird optimiser results
#
...
...
sql/sql_partition.cc
View file @
352cc8a9
...
...
@@ -1692,7 +1692,7 @@ bool fix_partition_func(THD *thd, TABLE *table,
if
(((
part_info
->
part_type
!=
HASH_PARTITION
||
part_info
->
list_of_part_fields
==
FALSE
)
&&
check_part_func_fields
(
part_info
->
part_field_array
,
TRUE
))
||
(
part_info
->
list_of_part_fields
==
FALSE
&&
(
part_info
->
list_of_
sub
part_fields
==
FALSE
&&
part_info
->
is_sub_partitioned
()
&&
check_part_func_fields
(
part_info
->
subpart_field_array
,
TRUE
)))
{
...
...
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