1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

Post-merge fixes.

This commit is contained in:
pem@mysql.comhem.se
2003-10-23 16:06:51 +02:00
parent 337238b78a
commit 692609537d
10 changed files with 51 additions and 51 deletions

View File

@@ -3024,6 +3024,8 @@ mysql_execute_command(THD *thd)
if (!(res = mysql_create_function(thd,&lex->udf)))
send_ok(thd);
#else
res= -1;
#endif
break;
}
#ifndef NO_EMBEDDED_ACCESS_CHECKS
@@ -3344,7 +3346,7 @@ mysql_execute_command(THD *thd)
LINT_INIT(smrx);
// In case the arguments are subselects...
if (tables && ((res= check_table_access(thd, SELECT_ACL, tables)) ||
if (tables && ((res= check_table_access(thd, SELECT_ACL, tables, 0)) ||
(res= open_and_lock_tables(thd, tables))))
{
break;
@@ -3425,7 +3427,7 @@ mysql_execute_command(THD *thd)
udf_func *udf = find_udf(lex->udf.name.str, lex->udf.name.length);
if (udf)
{
if (check_access(thd, DELETE_ACL, "mysql", 0, 1))
if (check_access(thd, DELETE_ACL, "mysql", 0, 1, 0))
goto error;
if (!(res = mysql_drop_function(thd,&lex->udf.name)))
{