diff options
author | unknown <peter@linux.local> | 2002-06-11 13:37:48 +0400 |
---|---|---|
committer | unknown <peter@linux.local> | 2002-06-11 13:37:48 +0400 |
commit | b6afdd09dbbfc37085061a421170c0585bb54f0d (patch) | |
tree | b7b63c5072690768a1b6914399e49cc5422ea4ec /sql/item_strfunc.h | |
parent | 15c99d52a2037d2a3f0b909dacd56aded6802c8b (diff) | |
download | mariadb-git-b6afdd09dbbfc37085061a421170c0585bb54f0d.tar.gz |
This changeset is mostly new version of previous commit modified according
to Monty's code style and optimization comments
client/client_priv.h:
New value for --single-transaction option
client/mysqldump.c:
Add --single-transaction option for consistent dumps
mysql-test/r/func_str.result:
New functions test results
mysql-test/t/func_str.test:
Tests for SHA/AES functions
mysys/Makefile.am:
Extra files require compilation now
sql/item_create.cc:
New functions
sql/item_create.h:
New functions
sql/item_strfunc.cc:
Implementation of SHA/AES_ENCRYPT/AES_DECRYPT
sql/item_strfunc.h:
Required class definition
sql/lex.h:
Add symbols for implemented functions
BitKeeper/etc/logging_ok:
Logging to logging@openlogging.org accepted
Diffstat (limited to 'sql/item_strfunc.h')
-rw-r--r-- | sql/item_strfunc.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/sql/item_strfunc.h b/sql/item_strfunc.h index 1279a5099d5..85910f45c77 100644 --- a/sql/item_strfunc.h +++ b/sql/item_strfunc.h @@ -52,6 +52,34 @@ public: const char *func_name() const { return "md5"; } }; +class Item_func_sha :public Item_str_func +{ +public: + Item_func_sha(Item *a) :Item_str_func(a) {} + String *val_str(String *); + void fix_length_and_dec(); + const char *func_name() const { return "sha"; } +}; + +class Item_func_aes_encrypt :public Item_str_func +{ +public: + Item_func_aes_encrypt(Item *a, Item *b) :Item_str_func(a,b) {} + String *val_str(String *); + void fix_length_and_dec(); + const char *func_name() const { return "aes_encrypt"; } +}; + +class Item_func_aes_decrypt :public Item_str_func +{ +public: + Item_func_aes_decrypt(Item *a, Item *b) :Item_str_func(a,b) {} + String *val_str(String *); + void fix_length_and_dec(); + const char *func_name() const { return "aes_decrypt"; } +}; + + class Item_func_concat :public Item_str_func { String tmp_value; |