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
e89acaa2
Commit
e89acaa2
authored
Sep 15, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.1
into dl145c.mysql.com:/home/ndbdev/tomas/mysql-5.1
parents
ee2125c9
4e0c2181
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
1 deletion
+29
-1
mysql-test/r/partition.result
mysql-test/r/partition.result
+10
-0
mysql-test/t/partition.test
mysql-test/t/partition.test
+18
-0
sql/sql_partition.cc
sql/sql_partition.cc
+1
-1
No files found.
mysql-test/r/partition.result
View file @
e89acaa2
...
...
@@ -87,3 +87,13 @@ partition by list (b*a)
partition x2 values in (3, 11, 5, 7) tablespace ts2,
partition x3 values in (16, 8, 5+19, 70-43) tablespace ts3);
drop table t1;
CREATE TABLE t1 (
a int not null)
partition by key(a);
LOCK TABLES t1 WRITE;
insert into t1 values (1);
insert into t1 values (2);
insert into t1 values (3);
insert into t1 values (4);
UNLOCK TABLES;
drop table t1;
mysql-test/t/partition.test
View file @
e89acaa2
...
...
@@ -134,3 +134,21 @@ partition by list (b*a)
partition
x3
values
in
(
16
,
8
,
5
+
19
,
70
-
43
)
tablespace
ts3
);
drop
table
t1
;
#
# Bug 13154: Insert crashes due to bad calculation of partition id
# for PARTITION BY KEY and SUBPARTITION BY KEY
#
CREATE
TABLE
t1
(
a
int
not
null
)
partition
by
key
(
a
);
LOCK
TABLES
t1
WRITE
;
insert
into
t1
values
(
1
);
insert
into
t1
values
(
2
);
insert
into
t1
values
(
3
);
insert
into
t1
values
(
4
);
UNLOCK
TABLES
;
drop
table
t1
;
sql/sql_partition.cc
View file @
e89acaa2
...
...
@@ -2305,7 +2305,7 @@ static uint32 get_part_id_key(Field **field_array,
uint
no_parts
)
{
DBUG_ENTER
(
"get_part_id_key"
);
DBUG_RETURN
(
calculate_key_value
(
field_array
)
&
no_parts
);
DBUG_RETURN
(
calculate_key_value
(
field_array
)
%
no_parts
);
}
...
...
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