mariadb/mysql-test/include/have_udf.inc
msvensson@shellback.(none) 0e5113aead Add test to mysql-test-run.pl to see if the udf_example.so is availble. Set envioronment variable UDF_EXAMPLE_LIB if it is.
Then check in have_udf if that variable is set. Finally use tahe variable when loading the shared library.
2006-04-27 16:32:40 +02:00

16 lines
387 B
PHP

#
# Check if server has support for loading udf's
# i.e it will support dlopen
#
--require r/have_udf.require
disable_query_log;
show variables like "have_dynamic_loading";
enable_query_log;
#
# Check if the variable UDF_EXAMPLE_LIB is set
#
--require r/have_udf_example.require
disable_query_log;
eval select LENGTH("$UDF_EXAMPLE_LIB") > 0 as "have_udf_example_lib";
enable_query_log;