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
3aff0a47
Commit
3aff0a47
authored
Jun 17, 2002
by
Sinisa@sinisa.nasamreza.org
Browse files
Options
Browse Files
Download
Plain Diff
Merge sinisa@work.mysql.com:/home/bk/mysql-4.0
into sinisa.nasamreza.org:/mnt/work/mysql-4.0
parents
6985839a
a2356e30
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
myisammrg/myrg_rprev.c
myisammrg/myrg_rprev.c
+3
-0
sql/opt_sum.cc
sql/opt_sum.cc
+5
-6
No files found.
myisammrg/myrg_rprev.c
View file @
3aff0a47
...
...
@@ -25,6 +25,9 @@ int myrg_rprev(MYRG_INFO *info, byte *buf, int inx)
int
err
;
MI_INFO
*
mi
;
if
(
!
info
||
!
info
->
current_table
)
return
HA_ERR_UNSUPPORTED
;
/* at first, do rprev for the table found before */
if
((
err
=
mi_rprev
(
info
->
current_table
->
table
,
NULL
,
inx
)))
{
...
...
sql/opt_sum.cc
View file @
3aff0a47
...
...
@@ -152,12 +152,11 @@ int opt_sum_query(TABLE_LIST *tables, List<Item> &all_fields,COND *conds)
error
=
table
->
file
->
index_last
(
table
->
record
[
0
])
!=
0
;
else
{
error
=
table
->
file
->
index_read
(
table
->
record
[
0
],
key_buff
,
ref
.
key_length
,
HA_READ_AFTER_KEY
);
if
(
!
error
)
error
=
table
->
file
->
index_prev
(
table
->
record
[
0
])
||
key_cmp
(
table
,
key_buff
,
ref
.
key
,
ref
.
key_length
);
(
void
)
table
->
file
->
index_read
(
table
->
record
[
0
],
key_buff
,
ref
.
key_length
,
HA_READ_AFTER_KEY
);
error
=
table
->
file
->
index_prev
(
table
->
record
[
0
])
||
key_cmp
(
table
,
key_buff
,
ref
.
key
,
ref
.
key_length
);
}
if
(
table
->
key_read
)
{
...
...
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