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
95e5b457
Commit
95e5b457
authored
Aug 27, 2004
by
joreland@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix ordered index scan with partially specified key
parent
9bc14a96
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
7 deletions
+13
-7
mysql-test/r/ndb_index_ordered.result
mysql-test/r/ndb_index_ordered.result
+6
-0
mysql-test/t/ndb_index_ordered.test
mysql-test/t/ndb_index_ordered.test
+3
-0
ndb/src/ndbapi/NdbScanOperation.cpp
ndb/src/ndbapi/NdbScanOperation.cpp
+4
-7
No files found.
mysql-test/r/ndb_index_ordered.result
View file @
95e5b457
...
...
@@ -205,4 +205,10 @@ a b c
select * from t1 where b<=5 and c=0 or b<=5 and c=2;
a b c
19 4 0
select count(*) from t1 where b = 0;
count(*)
0
select count(*) from t1 where b = 1;
count(*)
1
drop table t1;
mysql-test/t/ndb_index_ordered.test
View file @
95e5b457
...
...
@@ -113,6 +113,9 @@ select * from t1 where b<=5 and c=0;
select
*
from
t1
where
b
=
4
and
c
<=
5
order
by
a
;
select
*
from
t1
where
b
<=
4
and
c
<=
5
order
by
a
;
select
*
from
t1
where
b
<=
5
and
c
=
0
or
b
<=
5
and
c
=
2
;
select
count
(
*
)
from
t1
where
b
=
0
;
select
count
(
*
)
from
t1
where
b
=
1
;
drop
table
t1
;
#
...
...
ndb/src/ndbapi/NdbScanOperation.cpp
View file @
95e5b457
...
...
@@ -1188,13 +1188,11 @@ NdbIndexScanOperation::fix_get_values(){
for
(
Uint32
i
=
0
;
i
<
cnt
;
i
++
){
Uint32
val
=
theTupleKeyDefined
[
i
][
0
];
switch
(
val
){
case
FAKE_PTR
:{
NdbColumnImpl
*
key
=
idx
->
m_columns
[
i
];
NdbColumnImpl
*
col
=
tab
->
getColumn
(
key
->
m_keyInfoPos
);
curr
->
setup
(
col
,
0
);
}
break
;
case
FAKE_PTR
:
curr
->
setup
(
curr
->
m_column
,
0
);
case
API_PTR
:
curr
=
curr
->
next
();
break
;
case
SETBOUND_EQ
:
break
;
#ifdef VM_TRACE
...
...
@@ -1202,7 +1200,6 @@ NdbIndexScanOperation::fix_get_values(){
abort
();
#endif
}
curr
=
curr
->
next
();
}
}
...
...
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