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
8760cec6
Commit
8760cec6
authored
Oct 15, 2010
by
Alexey Botchkov
Browse files
Options
Browse Files
Download
Plain Diff
merging.
parents
22347830
6d14cae6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
2 deletions
+25
-2
mysql-test/r/partition_innodb.result
mysql-test/r/partition_innodb.result
+6
-0
mysql-test/t/partition_innodb.test
mysql-test/t/partition_innodb.test
+13
-0
sql/ha_partition.cc
sql/ha_partition.cc
+6
-2
No files found.
mysql-test/r/partition_innodb.result
View file @
8760cec6
...
@@ -413,3 +413,9 @@ a b
...
@@ -413,3 +413,9 @@ a b
3 2003-03-03
3 2003-03-03
COMMIT;
COMMIT;
DROP TABLE t1;
DROP TABLE t1;
CREATE TABLE t1 (i1 int NOT NULL primary key, f1 int) ENGINE = InnoDB
PARTITION BY HASH(i1) PARTITIONS 2;
INSERT INTO t1 VALUES (1,1), (2,2);
SELECT * FROM t1 WHERE i1 = ( SELECT i1 FROM t1 WHERE f1=0 LIMIT 1 );
i1 f1
DROP TABLE t1;
mysql-test/t/partition_innodb.test
View file @
8760cec6
...
@@ -425,3 +425,16 @@ connection default;
...
@@ -425,3 +425,16 @@ connection default;
SELECT
*
FROM
t1
;
SELECT
*
FROM
t1
;
COMMIT
;
COMMIT
;
DROP
TABLE
t1
;
DROP
TABLE
t1
;
#
# Bug #55146 Assertion `m_part_spec.start_part == m_part_spec.end_part' in index_read_idx_map
#
CREATE
TABLE
t1
(
i1
int
NOT
NULL
primary
key
,
f1
int
)
ENGINE
=
InnoDB
PARTITION
BY
HASH
(
i1
)
PARTITIONS
2
;
INSERT
INTO
t1
VALUES
(
1
,
1
),
(
2
,
2
);
SELECT
*
FROM
t1
WHERE
i1
=
(
SELECT
i1
FROM
t1
WHERE
f1
=
0
LIMIT
1
);
DROP
TABLE
t1
;
sql/ha_partition.cc
View file @
8760cec6
...
@@ -4266,8 +4266,12 @@ int ha_partition::index_read_idx_map(uchar *buf, uint index,
...
@@ -4266,8 +4266,12 @@ int ha_partition::index_read_idx_map(uchar *buf, uint index,
get_partition_set
(
table
,
buf
,
index
,
&
m_start_key
,
&
m_part_spec
);
get_partition_set
(
table
,
buf
,
index
,
&
m_start_key
,
&
m_part_spec
);
/* How can it be more than one partition with the current use? */
/*
DBUG_ASSERT
(
m_part_spec
.
start_part
==
m_part_spec
.
end_part
);
We have either found exactly 1 partition
(in which case start_part == end_part)
or no matching partitions (start_part > end_part)
*/
DBUG_ASSERT
(
m_part_spec
.
start_part
>=
m_part_spec
.
end_part
);
for
(
part
=
m_part_spec
.
start_part
;
part
<=
m_part_spec
.
end_part
;
part
++
)
for
(
part
=
m_part_spec
.
start_part
;
part
<=
m_part_spec
.
end_part
;
part
++
)
{
{
...
...
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