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
3faaf333
Commit
3faaf333
authored
Nov 17, 2009
by
Mattias Jonsson
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
7a6ab645
98fd3042
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 @
3faaf333
...
@@ -56,6 +56,13 @@ t1 CREATE TABLE `t1` (
...
@@ -56,6 +56,13 @@ t1 CREATE TABLE `t1` (
PARTITION p3 VALUES LESS THAN (733969) ENGINE = MyISAM,
PARTITION p3 VALUES LESS THAN (733969) ENGINE = MyISAM,
PARTITION pmax VALUES LESS THAN MAXVALUE ENGINE = MyISAM) */
PARTITION pmax VALUES LESS THAN MAXVALUE ENGINE = MyISAM) */
DROP TABLE t1;
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))
create table t1 (a int, b int, key(a))
partition by list (a)
partition by list (a)
( partition p0 values in (1),
( partition p0 values in (1),
...
...
mysql-test/t/partition.test
View file @
3faaf333
...
@@ -70,6 +70,17 @@ SELECT * FROM t1;
...
@@ -70,6 +70,17 @@ SELECT * FROM t1;
SHOW
CREATE
TABLE
t1
;
SHOW
CREATE
TABLE
t1
;
DROP
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
# Bug#44059: rec_per_key on empty partition gives weird optimiser results
#
#
...
...
sql/sql_partition.cc
View file @
3faaf333
...
@@ -1692,7 +1692,7 @@ bool fix_partition_func(THD *thd, TABLE *table,
...
@@ -1692,7 +1692,7 @@ bool fix_partition_func(THD *thd, TABLE *table,
if
(((
part_info
->
part_type
!=
HASH_PARTITION
||
if
(((
part_info
->
part_type
!=
HASH_PARTITION
||
part_info
->
list_of_part_fields
==
FALSE
)
&&
part_info
->
list_of_part_fields
==
FALSE
)
&&
check_part_func_fields
(
part_info
->
part_field_array
,
TRUE
))
||
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
()
&&
part_info
->
is_sub_partitioned
()
&&
check_part_func_fields
(
part_info
->
subpart_field_array
,
TRUE
)))
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