summaryrefslogtreecommitdiff
path: root/sql/item_strfunc.h
diff options
context:
space:
mode:
Diffstat (limited to 'sql/item_strfunc.h')
-rw-r--r--sql/item_strfunc.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/sql/item_strfunc.h b/sql/item_strfunc.h
index e3008a5daab..7b7f8d3308a 100644
--- a/sql/item_strfunc.h
+++ b/sql/item_strfunc.h
@@ -82,6 +82,18 @@ public:
const char *func_name() const { return "sha"; }
};
+class Item_func_sha2 :public Item_str_func
+{
+public:
+ Item_func_sha2(Item *a, Item *b) :Item_str_func(a, b)
+ {
+ collation.set(&my_charset_bin);
+ }
+ String *val_str(String *);
+ void fix_length_and_dec();
+ const char *func_name() const { return "sha2"; }
+};
+
class Item_func_aes_encrypt :public Item_str_func
{
public: