1--replace_regex /\.dll/.so/
2eval create function keyring_key_store returns integer soname '$KEYRING_UDF';
3--replace_regex /\.dll/.so/
4eval create function keyring_key_fetch returns string soname '$KEYRING_UDF';
5--replace_regex /\.dll/.so/
6eval create function keyring_key_type_fetch returns string soname '$KEYRING_UDF';
7--replace_regex /\.dll/.so/
8eval create function keyring_key_length_fetch returns integer soname '$KEYRING_UDF';
9--replace_regex /\.dll/.so/
10eval create function keyring_key_remove returns integer soname '$KEYRING_UDF';
11--replace_regex /\.dll/.so/
12eval create function keyring_key_generate returns integer soname '$KEYRING_UDF';
13
14--replace_regex /\.dll/.so/
15select * from mysql.func where name like '%keyring%' order by name;
16
17--error ER_CANT_INITIALIZE_UDF
18select keyring_key_generate('Rob_AES_128','AES',16);
19--error ER_CANT_INITIALIZE_UDF
20select keyring_key_store('Rob_AES_128','AES',"0123456789012345");
21--error ER_CANT_INITIALIZE_UDF
22select keyring_key_fetch('Rob_AES_128');
23--error ER_CANT_INITIALIZE_UDF
24select keyring_key_type_fetch('Rob_AES_128');
25--error ER_CANT_INITIALIZE_UDF
26select keyring_key_length_fetch('Rob_AES_128');
27--error ER_CANT_INITIALIZE_UDF
28select keyring_key_remove('Rob_AES_128');
29
30drop function keyring_key_store;
31drop function keyring_key_fetch;
32drop function keyring_key_type_fetch;
33drop function keyring_key_length_fetch;
34drop function keyring_key_remove;
35drop function keyring_key_generate;
36