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
446af393
Commit
446af393
authored
Jun 22, 2006
by
mikael@dator5.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG#20583: index_last causes crash when performed on single partition
parent
43409d98
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
+8
-0
mysql-test/t/partition.test
mysql-test/t/partition.test
+9
-0
sql/ha_partition.cc
sql/ha_partition.cc
+2
-1
No files found.
mysql-test/r/partition.result
View file @
446af393
...
...
@@ -1043,4 +1043,12 @@ alter table t1 add partition (partition p2 values in (3));
alter table t1 drop partition p2;
use test;
drop database db99;
create table t1 (a int, index(a))
partition by hash(a);
insert into t1 values (1),(2);
select * from t1 ORDER BY a DESC;
a
2
1
drop table t1;
End of 5.1 tests
mysql-test/t/partition.test
View file @
446af393
...
...
@@ -1199,4 +1199,13 @@ alter table t1 drop partition p2;
use
test
;
drop
database
db99
;
#
# Bug 20583 Partitions: Crash using index_last
#
create
table
t1
(
a
int
,
index
(
a
))
partition
by
hash
(
a
);
insert
into
t1
values
(
1
),(
2
);
select
*
from
t1
ORDER
BY
a
DESC
;
drop
table
t1
;
--
echo
End
of
5.1
tests
sql/ha_partition.cc
View file @
446af393
...
...
@@ -3399,7 +3399,8 @@ int ha_partition::common_first_last(byte *buf)
if
((
error
=
partition_scan_set_up
(
buf
,
FALSE
)))
return
error
;
if
(
!
m_ordered_scan_ongoing
)
if
(
!
m_ordered_scan_ongoing
&&
m_index_scan_type
!=
partition_index_last
)
return
handle_unordered_scan_next_partition
(
buf
);
return
handle_ordered_index_scan
(
buf
);
}
...
...
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