summaryrefslogtreecommitdiff
path: root/sql/sql_plugin_services.ic
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2017-03-06 17:05:03 +0100
committerSergei Golubchik <serg@mariadb.org>2017-03-10 18:21:27 +0100
commit051851b9a673e38d12612ea92d8a8913b8f0ca45 (patch)
tree12f7682895682f2654703cf0ee38e6dde49290ed /sql/sql_plugin_services.ic
parent70a2efde0352052fce5a44481055542e0b050048 (diff)
downloadmariadb-git-051851b9a673e38d12612ea92d8a8913b8f0ca45.tar.gz
base64 service
Diffstat (limited to 'sql/sql_plugin_services.ic')
-rw-r--r--sql/sql_plugin_services.ic10
1 files changed, 10 insertions, 0 deletions
diff --git a/sql/sql_plugin_services.ic b/sql/sql_plugin_services.ic
index e4a9732e888..e08870e9f98 100644
--- a/sql/sql_plugin_services.ic
+++ b/sql/sql_plugin_services.ic
@@ -119,6 +119,15 @@ static struct thd_autoinc_service_st thd_autoinc_handler= {
thd_get_autoinc
};
+static struct base64_service_st base64_handler= {
+ base64_needed_encoded_length,
+ base64_encode_max_arg_length,
+ base64_needed_decoded_length,
+ base64_decode_max_arg_length,
+ base64_encode,
+ base64_decode
+};
+
static struct thd_error_context_service_st thd_error_conext_handler= {
thd_get_error_message,
thd_get_error_number,
@@ -195,6 +204,7 @@ static struct st_service_ref list_of_services[]=
{ "my_sha1_service", VERSION_my_sha1, &my_sha1_handler},
{ "my_md5_service", VERSION_my_md5, &my_md5_handler},
{ "logger_service", VERSION_logger, &logger_service_handler },
+ { "base64_service", VERSION_base64, &base64_handler },
{ "thd_autoinc_service", VERSION_thd_autoinc, &thd_autoinc_handler },
{ "wsrep_service", VERSION_wsrep, &wsrep_handler },
{ "encryption_service", VERSION_encryption, &encryption_handler },