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
aa12184e
Commit
aa12184e
authored
Feb 15, 2006
by
ingo@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/mydev/mysql-5.1
into mysql.com:/home/mydev/mysql-5.1-bug8841
parents
4c173518
00fc4cab
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
1 deletion
+27
-1
mysql-test/r/partition.result
mysql-test/r/partition.result
+11
-0
mysql-test/t/partition.test
mysql-test/t/partition.test
+15
-0
sql/sql_partition.cc
sql/sql_partition.cc
+1
-1
No files found.
mysql-test/r/partition.result
View file @
aa12184e
...
@@ -278,3 +278,14 @@ partition p1 values in (14)
...
@@ -278,3 +278,14 @@ partition p1 values in (14)
insert into t1 values (10,1);
insert into t1 values (10,1);
ERROR HY000: Table has no partition for value 11
ERROR HY000: Table has no partition for value 11
drop table t1;
drop table t1;
create table t1 (f1 integer,f2 integer, f3 varchar(10), primary key(f1,f2))
partition by range(f1) subpartition by hash(f2) subpartitions 2
(partition p1 values less than (0),
partition p2 values less than (2),
partition p3 values less than (2147483647));
insert into t1 values(10,10,'10');
insert into t1 values(2,2,'2');
select * from t1 where f1 = 2;
f1 f2 f3
2 2 2
drop table t1;
mysql-test/t/partition.test
View file @
aa12184e
...
@@ -353,3 +353,18 @@ insert into t1 values (10,1);
...
@@ -353,3 +353,18 @@ insert into t1 values (10,1);
drop
table
t1
;
drop
table
t1
;
#
# Bug#16901 Partitions: crash, SELECT, column of part.
# function=first column of primary key
#
create
table
t1
(
f1
integer
,
f2
integer
,
f3
varchar
(
10
),
primary
key
(
f1
,
f2
))
partition
by
range
(
f1
)
subpartition
by
hash
(
f2
)
subpartitions
2
(
partition
p1
values
less
than
(
0
),
partition
p2
values
less
than
(
2
),
partition
p3
values
less
than
(
2147483647
));
insert
into
t1
values
(
10
,
10
,
'10'
);
insert
into
t1
values
(
2
,
2
,
'2'
);
select
*
from
t1
where
f1
=
2
;
drop
table
t1
;
sql/sql_partition.cc
View file @
aa12184e
...
@@ -3754,7 +3754,7 @@ void get_partition_set(const TABLE *table, byte *buf, const uint index,
...
@@ -3754,7 +3754,7 @@ void get_partition_set(const TABLE *table, byte *buf, const uint index,
subpartitions. This is a range without holes.
subpartitions. This is a range without holes.
*/
*/
DBUG_ASSERT
(
sub_part
==
no_parts
);
DBUG_ASSERT
(
sub_part
==
no_parts
);
part_spec
->
start_part
=
part_part
*
part_info
->
no_parts
;
part_spec
->
start_part
=
part_part
*
part_info
->
no_
sub
parts
;
part_spec
->
end_part
=
part_spec
->
start_part
+
part_info
->
no_subparts
-
1
;
part_spec
->
end_part
=
part_spec
->
start_part
+
part_info
->
no_subparts
-
1
;
}
}
else
else
...
...
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