| 1 |
INSTALL PLUGIN test_udf_registration SONAME 'test_udf_services.so'; |
| 2 |
# Must work |
| 3 |
SELECT test_udf_registration_udf(); |
| 4 |
test_udf_registration_udf() |
| 5 |
0 |
| 6 |
UNINSTALL PLUGIN test_udf_registration; |
| 7 |
# Must fail: no UDF |
| 8 |
SELECT test_udf_registration_udf(); |
| 9 |
ERROR 42000: FUNCTION test.test_udf_registration_udf does not exist |
| 10 |
INSTALL PLUGIN test_udf_registration SONAME 'test_udf_services.so'; |
| 11 |
# Restart the server |
| 12 |
# restart |
| 13 |
# Must work after a restart |
| 14 |
SELECT test_udf_registration_udf(); |
| 15 |
test_udf_registration_udf() |
| 16 |
0 |
| 17 |
# Cleanup |
| 18 |
UNINSTALL PLUGIN test_udf_registration; |