summaryrefslogtreecommitdiff
path: root/sql/item_sum.h
diff options
context:
space:
mode:
authorunknown <harrison@bud.lordblink.com>2003-10-15 02:11:03 -0400
committerunknown <harrison@bud.lordblink.com>2003-10-15 02:11:03 -0400
commitacb47c93be78fbc59ca75fc1195444e7d8dc3568 (patch)
tree61ece9d1249d602850409cb88d9ac7e67a14362f /sql/item_sum.h
parenta14c1e411cb763688a0673b326cdd09c589fecf0 (diff)
downloadmariadb-git-acb47c93be78fbc59ca75fc1195444e7d8dc3568.tar.gz
Add in bit_xor function (approved by Sergei)
sql/item_sum.cc: Add in bit_xor class functions. sql/item_sum.h: Add bit_xor class. sql/lex.h: Add in bit_xor symbol. sql/sql_yacc.yy: Add in bit_xor function BitKeeper/etc/logging_ok: Logging to logging@openlogging.org accepted
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
*/