summaryrefslogtreecommitdiff
path: root/sql/item_sum.h
diff options
context:
space:
mode:
authorharrison@bud.lordblink.com <>2003-10-15 02:11:03 -0400
committerharrison@bud.lordblink.com <>2003-10-15 02:11:03 -0400
commit672a7791c4b6142f10e71921ebafb3a9748dc777 (patch)
tree61ece9d1249d602850409cb88d9ac7e67a14362f /sql/item_sum.h
parent9ed99782e43313350535668d5a6d10f4786752c7 (diff)
downloadmariadb-git-672a7791c4b6142f10e71921ebafb3a9748dc777.tar.gz
Add in bit_xor function (approved by Sergei)
Diffstat (limited to 'sql/item_sum.h')
-rw-r--r--sql/item_sum.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/sql/item_sum.h b/sql/item_sum.h
index d6184bcdbac..e5061e1e05a 100644
--- a/sql/item_sum.h
+++ b/sql/item_sum.h
@@ -484,6 +484,18 @@ class Item_sum_and :public Item_sum_bit
Item *copy_or_same(THD* thd);
};
+class Item_sum_xor :public Item_sum_bit
+{
+ public:
+ Item_sum_xor(Item *item_par) :Item_sum_bit(item_par,LL(0)) {}
+ Item_sum_xor(THD *thd, Item_sum_xor &item) :Item_sum_bit(thd, item) {}
+ bool add();
+ void update_field();
+ const char *func_name() const { return "bit_xor"; }
+ Item *copy_or_same(THD* thd);
+};
+
+
/*
** user defined aggregates
*/