mirror of
https://github.com/MariaDB/server.git
synced 2026-05-02 21:25:36 +02:00
Backport Bug#37148 to 5.1
This commit is contained in:
parent
16471fecc7
commit
2b16517522
28 changed files with 472 additions and 159 deletions
|
|
@ -506,8 +506,8 @@ int mysql_create_function(THD *thd,udf_func *udf)
|
|||
rw_unlock(&THR_LOCK_udf);
|
||||
|
||||
/* Binlog the create function. */
|
||||
write_bin_log(thd, TRUE, thd->query(), thd->query_length());
|
||||
|
||||
if (write_bin_log(thd, TRUE, thd->query(), thd->query_length()))
|
||||
DBUG_RETURN(1);
|
||||
DBUG_RETURN(0);
|
||||
|
||||
err:
|
||||
|
|
@ -581,8 +581,8 @@ int mysql_drop_function(THD *thd,const LEX_STRING *udf_name)
|
|||
rw_unlock(&THR_LOCK_udf);
|
||||
|
||||
/* Binlog the drop function. */
|
||||
write_bin_log(thd, TRUE, thd->query(), thd->query_length());
|
||||
|
||||
if (write_bin_log(thd, TRUE, thd->query(), thd->query_length()))
|
||||
DBUG_RETURN(1);
|
||||
DBUG_RETURN(0);
|
||||
err:
|
||||
rw_unlock(&THR_LOCK_udf);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue