diff options
Diffstat (limited to 'sql/item_cmpfunc.h')
-rw-r--r-- | sql/item_cmpfunc.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sql/item_cmpfunc.h b/sql/item_cmpfunc.h index 685e9105aa3..7aaef893415 100644 --- a/sql/item_cmpfunc.h +++ b/sql/item_cmpfunc.h @@ -131,6 +131,11 @@ public: bool is_bool_type() { return true; } void fix_length_and_dec() { decimals=0; max_length=1; } uint decimal_precision() const { return 1; } + virtual bool can_optimize_group_min_max(Item_field *min_max_arg_item, + const Item *const_item) const + { + return false; + } }; @@ -419,6 +424,12 @@ public: { return (*arg != NULL); } + bool can_optimize_group_min_max(Item_field *min_max_arg_item, + const Item *const_item) const + { + return min_max_arg_item->field->can_optimize_group_min_max(this, + const_item); + } }; /** |