| 1 |
--source include/not_asan_mac.inc |
| 2 |
|
| 3 |
# Save the initial number of concurrent sessions |
| 4 |
--source include/count_sessions.inc |
| 5 |
|
| 6 |
--replace_regex /\.dll/.so/ |
| 7 |
eval INSTALL PLUGIN test_udf_registration SONAME '$TESTUDFREGISTRATION'; |
| 8 |
|
| 9 |
--echo # Must work |
| 10 |
SELECT test_udf_registration_udf(); |
| 11 |
|
| 12 |
UNINSTALL PLUGIN test_udf_registration; |
| 13 |
|
| 14 |
--echo # Must fail: no UDF |
| 15 |
--error ER_SP_DOES_NOT_EXIST |
| 16 |
SELECT test_udf_registration_udf(); |
| 17 |
|
| 18 |
--replace_regex /\.dll/.so/ |
| 19 |
eval INSTALL PLUGIN test_udf_registration SONAME '$TESTUDFREGISTRATION'; |
| 20 |
|
| 21 |
|
| 22 |
--echo # Restart the server |
| 23 |
--source include/restart_mysqld.inc |
| 24 |
|
| 25 |
|
| 26 |
--echo # Must work after a restart |
| 27 |
SELECT test_udf_registration_udf(); |
| 28 |
|
| 29 |
--echo # Cleanup |
| 30 |
UNINSTALL PLUGIN test_udf_registration; |