summaryrefslogtreecommitdiff
path: root/sql/sql_parse.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r--sql/sql_parse.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc
index a4ff6a91b33..67a3865057f 100644
--- a/sql/sql_parse.cc
+++ b/sql/sql_parse.cc
@@ -2959,6 +2959,7 @@ mysql_execute_command(THD *thd)
{
uint namelen;
char *name= lex->sphead->name(&namelen);
+#ifdef HAVE_DLOPEN
udf_func *udf = find_udf(name, namelen);
if (udf)
@@ -2966,6 +2967,7 @@ mysql_execute_command(THD *thd)
net_printf(thd, ER_UDF_EXISTS, name);
goto error;
}
+#endif
res= lex->sphead->create(thd);
switch (res)
{
@@ -3000,7 +3002,7 @@ mysql_execute_command(THD *thd)
thd->net.no_send_ok= TRUE;
#endif
- res= sp->execute(thd);
+ res= sp->execute_procedure(thd, &lex->value_list);
#ifndef EMBEDDED_LIBRARY
thd->net.no_send_ok= nsok;
#endif