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
6caff6f7
Commit
6caff6f7
authored
Feb 12, 2007
by
gluh@mysql.com/eagle.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
valgrind error fix
parent
47e537b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
sql/opt_range.cc
sql/opt_range.cc
+12
-7
No files found.
sql/opt_range.cc
View file @
6caff6f7
...
...
@@ -8820,7 +8820,7 @@ int QUICK_GROUP_MIN_MAX_SELECT::get_next()
#else
int
result
;
#endif
int
is_last_prefix
;
int
is_last_prefix
=
0
;
DBUG_ENTER
(
"QUICK_GROUP_MIN_MAX_SELECT::get_next"
);
...
...
@@ -8835,13 +8835,18 @@ int QUICK_GROUP_MIN_MAX_SELECT::get_next()
Check if this is the last group prefix. Notice that at this point
this->record contains the current prefix in record format.
*/
is_last_prefix
=
key_cmp
(
index_info
->
key_part
,
last_prefix
,
group_prefix_len
);
DBUG_ASSERT
(
is_last_prefix
<=
0
);
if
(
result
==
HA_ERR_KEY_NOT_FOUND
)
continue
;
else
if
(
result
)
if
(
!
result
)
{
is_last_prefix
=
key_cmp
(
index_info
->
key_part
,
last_prefix
,
group_prefix_len
);
DBUG_ASSERT
(
is_last_prefix
<=
0
);
}
else
{
if
(
result
==
HA_ERR_KEY_NOT_FOUND
)
continue
;
break
;
}
if
(
have_min
)
{
...
...
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