From 672a7791c4b6142f10e71921ebafb3a9748dc777 Mon Sep 17 00:00:00 2001 From: "harrison@bud.lordblink.com" <> Date: Wed, 15 Oct 2003 02:11:03 -0400 Subject: Add in bit_xor function (approved by Sergei) --- sql/item_sum.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'sql/item_sum.h') 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 */ -- cgit v1.2.1