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
9e56572e
Commit
9e56572e
authored
Jul 01, 2006
by
mikael@dator5.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge dator5.(none):/home/pappa/clean-mysql-5.1
into dator5.(none):/home/pappa/bug20583
parents
b6559681
446af393
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 @
9e56572e
...
@@ -1057,4 +1057,12 @@ alter table t1 add partition (partition p2 values in (3));
...
@@ -1057,4 +1057,12 @@ alter table t1 add partition (partition p2 values in (3));
alter table t1 drop partition p2;
alter table t1 drop partition p2;
use test;
use test;
drop database db99;
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
End of 5.1 tests
mysql-test/t/partition.test
View file @
9e56572e
...
@@ -1223,4 +1223,13 @@ alter table t1 drop partition p2;
...
@@ -1223,4 +1223,13 @@ alter table t1 drop partition p2;
use
test
;
use
test
;
drop
database
db99
;
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
--
echo
End
of
5.1
tests
sql/ha_partition.cc
View file @
9e56572e
...
@@ -3400,7 +3400,8 @@ int ha_partition::common_first_last(byte *buf)
...
@@ -3400,7 +3400,8 @@ int ha_partition::common_first_last(byte *buf)
if
((
error
=
partition_scan_set_up
(
buf
,
FALSE
)))
if
((
error
=
partition_scan_set_up
(
buf
,
FALSE
)))
return
error
;
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_unordered_scan_next_partition
(
buf
);
return
handle_ordered_index_scan
(
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