mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Bug#11835 CREATE FUNCTION crashes server
- Update for 5.1 - Add "have_dlopen" - Remove requirement to load udf's only in "opt_plugin_dir" include/my_global.h: Remove duplicate defines mysql-test/include/have_udf.inc: Use "have_dlopen" to check if we "have udf" mysql-test/r/have_udf.require: Use "have_dlopen" to check if we "have udf" mysql-test/r/udf.result: Update for new error message "function"->"symbol" sql/item_func.cc: Remove "evil" dbug printour that checks args[0] even if arg_count is 0 sql/mysql_priv.h: Add "have_dlopen" sql/mysqld.cc: Add "have_dlopen" Move HAVE_DLOPEN defined to only surround "udf_free" and "udf_init" sql/set_var.cc: Add "have_dlopen" sql/sql_plugin.cc: Surround 'dlclose' with HAVE_DLOPEN sql/sql_udf.cc: Remove the requirement to load udf's only from "opt_plugin_dir". Fix spelling error
This commit is contained in:
@@ -630,6 +630,7 @@ sys_var_have_variable sys_have_blackhole_db("have_blackhole_engine",
|
||||
sys_var_have_variable sys_have_compress("have_compress", &have_compress);
|
||||
sys_var_have_variable sys_have_crypt("have_crypt", &have_crypt);
|
||||
sys_var_have_variable sys_have_csv_db("have_csv", &have_csv_db);
|
||||
sys_var_have_variable sys_have_dlopen("have_dlopen", &have_dlopen);
|
||||
sys_var_have_variable sys_have_example_db("have_example_engine",
|
||||
&have_example_db);
|
||||
sys_var_have_variable sys_have_federated_db("have_federated_engine",
|
||||
@@ -754,6 +755,7 @@ SHOW_VAR init_vars[]= {
|
||||
{sys_have_compress.name, (char*) &have_compress, SHOW_HAVE},
|
||||
{sys_have_crypt.name, (char*) &have_crypt, SHOW_HAVE},
|
||||
{sys_have_csv_db.name, (char*) &have_csv_db, SHOW_HAVE},
|
||||
{sys_have_dlopen.name, (char*) &have_dlopen, SHOW_HAVE},
|
||||
{sys_have_example_db.name, (char*) &have_example_db, SHOW_HAVE},
|
||||
{sys_have_federated_db.name,(char*) &have_federated_db, SHOW_HAVE},
|
||||
{sys_have_geometry.name, (char*) &have_geometry, SHOW_HAVE},
|
||||
|
Reference in New Issue
Block a user