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
c9265171
Commit
c9265171
authored
Sep 16, 2004
by
igor@rurik.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge rurik.mysql.com:/home/igor/mysql-4.1
into rurik.mysql.com:/home/igor/dev/mysql-4.1-0
parents
9df91321
cfbd2b7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
sql/opt_sum.cc
sql/opt_sum.cc
+4
-6
No files found.
sql/opt_sum.cc
View file @
c9265171
...
@@ -191,9 +191,8 @@ int opt_sum_query(TABLE_LIST *tables, List<Item> &all_fields,COND *conds)
...
@@ -191,9 +191,8 @@ int opt_sum_query(TABLE_LIST *tables, List<Item> &all_fields,COND *conds)
range_fl
&
NEAR_MIN
?
range_fl
&
NEAR_MIN
?
HA_READ_AFTER_KEY
:
HA_READ_AFTER_KEY
:
HA_READ_KEY_OR_NEXT
);
HA_READ_KEY_OR_NEXT
);
if
((
!
error
||
error
==
HA_ERR_KEY_NOT_FOUND
)
&&
if
(
!
error
&&
reckey_in_range
(
0
,
&
ref
,
item_field
->
field
,
reckey_in_range
(
0
,
&
ref
,
item_field
->
field
,
conds
,
range_fl
,
prefix_len
))
conds
,
range_fl
,
prefix_len
))
error
=
HA_ERR_KEY_NOT_FOUND
;
error
=
HA_ERR_KEY_NOT_FOUND
;
if
(
table
->
key_read
)
if
(
table
->
key_read
)
{
{
...
@@ -264,9 +263,8 @@ int opt_sum_query(TABLE_LIST *tables, List<Item> &all_fields,COND *conds)
...
@@ -264,9 +263,8 @@ int opt_sum_query(TABLE_LIST *tables, List<Item> &all_fields,COND *conds)
range_fl
&
NEAR_MAX
?
range_fl
&
NEAR_MAX
?
HA_READ_BEFORE_KEY
:
HA_READ_BEFORE_KEY
:
HA_READ_PREFIX_LAST_OR_PREV
);
HA_READ_PREFIX_LAST_OR_PREV
);
if
((
!
error
||
error
==
HA_ERR_KEY_NOT_FOUND
)
&&
if
(
!
error
&&
reckey_in_range
(
1
,
&
ref
,
item_field
->
field
,
reckey_in_range
(
1
,
&
ref
,
item_field
->
field
,
conds
,
range_fl
,
prefix_len
))
conds
,
range_fl
,
prefix_len
))
error
=
HA_ERR_KEY_NOT_FOUND
;
error
=
HA_ERR_KEY_NOT_FOUND
;
if
(
table
->
key_read
)
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