diff options
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r-- | sql/sql_parse.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index 7cb0a593e80..7c2a4b9780a 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -2986,6 +2986,8 @@ mysql_execute_command(THD *thd) break; #ifdef HAVE_DLOPEN sp_head *sph= sp_find_function(thd, &lex->udf.name); + // close & unlock table opened by sp_find_function + close_thread_tables(thd); if (sph) { net_printf(thd, ER_UDF_EXISTS, lex->udf.name.str); |