diff options
author | Oleksandr Byelkin <sanja@mariadb.com> | 2020-07-29 21:54:24 +0200 |
---|---|---|
committer | Oleksandr Byelkin <sanja@mariadb.com> | 2020-10-11 12:30:41 +0200 |
commit | 5b86139118d8fe32b90caeaa4282edc2879cfcb5 (patch) | |
tree | 3bb6d8011b0b8c092124e9eba90330d1cb207105 /sql/sql_udf.h | |
parent | 222e1b806ff93083a62f740f6d247f8081983592 (diff) | |
download | mariadb-git-bb-10.2-MDEV-23327.tar.gz |
MDEV-23327 Can't uninstall UDF if the implementation library file doesn't existbb-10.2-MDEV-23327
Made cleanup of DROP (udf) FUNCTION procedure and also check of mysql.func (not only loaded udf).
Diffstat (limited to 'sql/sql_udf.h')
-rw-r--r-- | sql/sql_udf.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sql/sql_udf.h b/sql/sql_udf.h index a683b8a7554..bfa03dcce33 100644 --- a/sql/sql_udf.h +++ b/sql/sql_udf.h @@ -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) { } |