summaryrefslogtreecommitdiff
path: root/sql/item_sum.h
diff options
context:
space:
mode:
Diffstat (limited to 'sql/item_sum.h')
-rw-r--r--sql/item_sum.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/sql/item_sum.h b/sql/item_sum.h
index 1a21c257221..663dea1ed7b 100644
--- a/sql/item_sum.h
+++ b/sql/item_sum.h
@@ -574,7 +574,7 @@ public:
virtual bool add()= 0;
virtual bool setup(THD *thd) { return false; }
- virtual bool supports_removal() const { return false; }
+ virtual bool supports_removal() { return false; }
virtual void remove() { DBUG_ASSERT(0); }
virtual void cleanup();
@@ -817,7 +817,7 @@ public:
Item *get_copy(THD *thd)
{ return get_item_copy<Item_sum_sum>(thd, this); }
- bool supports_removal() const
+ bool supports_removal()
{
return true;
}
@@ -888,7 +888,7 @@ public:
Item *get_copy(THD *thd)
{ return get_item_copy<Item_sum_count>(thd, this); }
- bool supports_removal() const
+ bool supports_removal()
{
return true;
}
@@ -944,7 +944,7 @@ public:
Item *get_copy(THD *thd)
{ return get_item_copy<Item_sum_avg>(thd, this); }
- bool supports_removal() const
+ bool supports_removal()
{
return true;
}
@@ -1169,7 +1169,7 @@ public:
DBUG_ASSERT(0);
}
- bool supports_removal() const
+ bool supports_removal()
{
return true;
}
@@ -1561,6 +1561,8 @@ public:
void clear();
bool add();
+ bool supports_removal();
+ void remove();
void reset_field() {};
void update_field() {};
void cleanup();