mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 19:37:16 +02:00
Bug#18564 Test failure due to test not checking preconditions
- Add variable "have_dynamic_loading" and use it to check if the udf test should be run. mysql-test/include/have_udf.inc: Use variable "have_dynamic_loading" to to determine if there is support for udf's mysql-test/r/have_udf.require: Use variable "have_dynamic_loading" to to determine if there is support for udf's mysql-test/t/disabled.def: Remove udf from disabled sql/mysql_priv.h: Add have_dlopen variable sql/mysqld.cc: Add have_dlopen variable sql/set_var.cc: Add have_dlopen variable and name it "have_dynamic_loading" in "SHOW VARIABLES"
This commit is contained in:
parent
10633fd839
commit
0a8d876d14
6 changed files with 15 additions and 13 deletions
|
|
@ -1,12 +1,8 @@
|
|||
#
|
||||
# To check if the udf_example.so is available,
|
||||
# try to load one function from it.
|
||||
#
|
||||
# Check if server has support for loading udf's
|
||||
# i.e it will support dlopen
|
||||
#
|
||||
--require r/have_udf.require
|
||||
--disable_abort_on_error
|
||||
CREATE FUNCTION metaphon RETURNS STRING SONAME 'udf_example.so';
|
||||
--disable_query_log
|
||||
DROP FUNCTION metaphon;
|
||||
--enable_query_log
|
||||
--enable_abort_on_error
|
||||
disable_query_log;
|
||||
show variables like "have_dynamic_loading";
|
||||
enable_query_log;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue