mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-23327 Can't uninstall UDF if the implementation library file doesn't exist
Made cleanup of DROP (udf) FUNCTION procedure and also check of mysql.func (not only loaded udf).
This commit is contained in:
@ -140,7 +140,13 @@ void udf_init(void),udf_free(void);
|
||||
udf_func *find_udf(const char *name, uint len=0,bool mark_used=0);
|
||||
void free_udf(udf_func *udf);
|
||||
int mysql_create_function(THD *thd,udf_func *udf);
|
||||
int mysql_drop_function(THD *thd,const LEX_STRING *name);
|
||||
enum drop_udf_result
|
||||
{
|
||||
UDF_DEL_RESULT_ABSENT,
|
||||
UDF_DEL_RESULT_DELETED,
|
||||
UDF_DEL_RESULT_ERROR
|
||||
};
|
||||
enum drop_udf_result mysql_drop_function(THD *thd,const LEX_STRING *name);
|
||||
#else
|
||||
static inline void udf_init(void) { }
|
||||
static inline void udf_free(void) { }
|
||||
|
Reference in New Issue
Block a user