Skip to content

Commit 07f1691

Browse files
author
Ajo Robert
committed
Bug#24423143 - WRONG RESULTS FOR AGGREGATE QUERY
Post push build fix. Change-Id: I282a874f87b7c37502e90dc1b32df8655b726726
1 parent ebce2b5 commit 07f1691

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

sql/opt_range.cc

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12801,13 +12801,13 @@ check_group_min_max_predicates(Item *cond, Item_field *min_max_arg_item,
1280112801
Utility function used by min_max_inspect_cond_for_fields() for comparing
1280212802
FILED item with given MIN/MAX item and setting appropriate out paramater.
1280312803
12804-
@param[in] cond tree (or subtree) describing all or part of the WHERE
12805-
clause being analyzed.
12806-
@param[in] min_max_arg_item The field referenced by the MIN/MAX
12804+
@param cond Tree (or subtree) describing all or part of
12805+
the WHERE clause being analyzed.
12806+
@param min_max_arg_item The field referenced by the MIN/MAX
1280712807
function(s).
12808-
@param[in/out] min_max_arg_present This out parameter is set to true if
12808+
@param [out] min_max_arg_present This out parameter is set to true if
1280912809
MIN/MAX argument is present in cond.
12810-
@param[in/out] non_min_max_arg_present This out parameter is set to true if
12810+
@param [out] non_min_max_arg_present This out parameter is set to true if
1281112811
any field item other than MIN/MAX
1281212812
argument is present in cond.
1281312813
*/
@@ -12830,13 +12830,13 @@ static inline void util_min_max_inspect_item(Item *item_field,
1283012830
one non MIN/MAX field participation in the given condition. Subqueries
1283112831
inspection is skipped as of now.
1283212832
12833-
@param[in] cond tree (or subtree) describing all or part of the WHERE
12833+
@param cond tree (or subtree) describing all or part of the WHERE
1283412834
clause being analyzed.
12835-
@param[in] min_max_arg_item The field referenced by the MIN/MAX
12835+
@param min_max_arg_item The field referenced by the MIN/MAX
1283612836
function(s).
12837-
@param[in/out] min_max_arg_present This out parameter is set to true if
12837+
@param [out] min_max_arg_present This out parameter is set to true if
1283812838
MIN/MAX argument is present in cond.
12839-
@param[in/out] non_min_max_arg_present This out parameter is set to true if
12839+
@param [out] non_min_max_arg_present This out parameter is set to true if
1284012840
any field item other than MIN/MAX
1284112841
argument is present in cond.
1284212842
@@ -12922,6 +12922,8 @@ min_max_inspect_cond_for_fields(Item *cond, Item_field *min_max_arg_item,
1292212922
DBUG_RETURN(true);
1292312923
}
1292412924
}
12925+
12926+
break;
1292512927
}
1292612928
case Item::FIELD_ITEM: {
1292712929
util_min_max_inspect_item(cond,

0 commit comments

Comments
 (0)