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
1173fc78
Commit
1173fc78
authored
Nov 17, 2002
by
serg@serg.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
better boundary behaviour
parent
0a75fe85
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
myisammrg/myrg_range.c
myisammrg/myrg_range.c
+4
-2
No files found.
myisammrg/myrg_range.c
View file @
1173fc78
...
@@ -30,8 +30,10 @@ ha_rows myrg_records_in_range(MYRG_INFO *info, int inx, const byte *start_key,
...
@@ -30,8 +30,10 @@ ha_rows myrg_records_in_range(MYRG_INFO *info, int inx, const byte *start_key,
res
=
mi_records_in_range
(
table
->
table
,
inx
,
res
=
mi_records_in_range
(
table
->
table
,
inx
,
start_key
,
start_key_len
,
start_search_flag
,
start_key
,
start_key_len
,
start_search_flag
,
end_key
,
end_key_len
,
end_search_flag
);
end_key
,
end_key_len
,
end_search_flag
);
if
(
res
==
HA_POS_ERROR
||
records
>
HA_POS_ERROR
-
res
)
if
(
res
==
HA_POS_ERROR
)
return
res
;
return
HA_POS_ERROR
;
if
(
records
>
HA_POS_ERROR
-
res
)
return
HA_POS_ERROR
-
1
;
records
+=
res
;
records
+=
res
;
}
}
return
records
;
return
records
;
...
...
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