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
86293ca6
Commit
86293ca6
authored
Mar 14, 2006
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Manual merge
parent
d9992409
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
mysql-test/r/partition.result
mysql-test/r/partition.result
+1
-0
mysql-test/t/partition.test
mysql-test/t/partition.test
+3
-3
sql/sql_partition.cc
sql/sql_partition.cc
+1
-1
No files found.
mysql-test/r/partition.result
View file @
86293ca6
...
...
@@ -476,6 +476,7 @@ subpartition by hash(a)
(partition p0 values less than (0),
partition p1 values less than (1) (subpartition sp0));
ERROR 42000: Wrong number of subpartitions defined, mismatch with previous setting near '))' at line 5
create table t1 (a int)
partition by hash (a)
(partition p0 (subpartition sp0));
ERROR HY000: It is only possible to mix RANGE/LIST partitioning with HASH/KEY partitioning for subpartitioning
...
...
mysql-test/t/partition.test
View file @
86293ca6
...
...
@@ -504,14 +504,14 @@ from information_schema.partitions where table_schema ='test';
drop
table
t1
;
# NULL for LIST partition
--
error
1473
--
error
ER_MULTIPLE_DEF_CONST_IN_LIST_PART_ERROR
create
table
t1
(
a
int
,
b
int
,
c
int
)
partition
by
list
(
a
)
partitions
2
(
partition
x123
values
in
(
11
,
12
),
partition
x234
values
in
(
1
,
NULL
,
NULL
));
--
error
1473
--
error
ER_MULTIPLE_DEF_CONST_IN_LIST_PART_ERROR
create
table
t1
(
a
int
,
b
int
,
c
int
)
partition
by
list
(
a
)
partitions
2
...
...
@@ -523,7 +523,7 @@ partition by list(a)
partitions
2
(
partition
x123
values
in
(
11
,
12
),
partition
x234
values
in
(
5
,
1
));
--
error
1504
--
error
ER_NO_PARTITION_FOR_GIVEN_VALUE
insert
into
t1
values
(
NULL
,
1
,
1
);
drop
table
t1
;
...
...
sql/sql_partition.cc
View file @
86293ca6
...
...
@@ -704,7 +704,7 @@ bool check_partition_info(partition_info *part_info,handlerton **eng_type,
part_info
->
part_type
==
LIST_PARTITION
))))
{
/* Only RANGE and LIST partitioning can be subpartitioned */
my_error
(
ER_
PARTITION_SUBPART_MIX
_ERROR
,
MYF
(
0
));
my_error
(
ER_
SUBPARTITION
_ERROR
,
MYF
(
0
));
goto
end
;
}
if
(
unlikely
(
part_info
->
set_up_defaults_for_partitioning
(
file
,
...
...
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