summaryrefslogtreecommitdiff
path: root/sql/item_strfunc.h
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mnogosearch.org>2013-09-23 18:58:33 +0400
committerAlexander Barkov <bar@mnogosearch.org>2013-09-23 18:58:33 +0400
commite33582d20d2a9f215dc4d0effa55886bbabdce3d (patch)
treeeebea43211dfaefb954c40af5b72afe97019b572 /sql/item_strfunc.h
parent9cbd53bfb2e72376080a3951185e4780b0519718 (diff)
downloadmariadb-git-e33582d20d2a9f215dc4d0effa55886bbabdce3d.tar.gz
Merging TO_BASE64() and FROM_BASE64() from MySQL-5.6
Diffstat (limited to 'sql/item_strfunc.h')
-rw-r--r--sql/item_strfunc.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/sql/item_strfunc.h b/sql/item_strfunc.h
index 86e1aa70a6b..5c85c74ad52 100644
--- a/sql/item_strfunc.h
+++ b/sql/item_strfunc.h
@@ -116,6 +116,27 @@ public:
const char *func_name() const { return "sha2"; }
};
+class Item_func_to_base64 :public Item_str_ascii_func
+{
+ String tmp_value;
+public:
+ Item_func_to_base64(Item *a) :Item_str_ascii_func(a) {}
+ String *val_str_ascii(String *);
+ void fix_length_and_dec();
+ const char *func_name() const { return "to_base64"; }
+};
+
+class Item_func_from_base64 :public Item_str_func
+{
+ String tmp_value;
+public:
+ Item_func_from_base64(Item *a) :Item_str_func(a) {}
+ String *val_str(String *);
+ void fix_length_and_dec();
+ const char *func_name() const { return "from_base64"; }
+};
+
+
class Item_func_aes_encrypt :public Item_str_func
{
public: