summaryrefslogtreecommitdiff
path: root/sql/sp.cc
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2016-03-24 09:45:28 +0100
committerOleksandr Byelkin <sanja@mariadb.com>2016-03-24 09:45:28 +0100
commit9f5b285662ed8c13d6e87d8baf2f0ad4484d4a85 (patch)
tree88ffb36cfa02e5a091cf63a2a921f7c3d1fd1d4d /sql/sp.cc
parent2cb72dcccb640e546cf202481fa545c9cf5ded3a (diff)
downloadmariadb-git-9f5b285662ed8c13d6e87d8baf2f0ad4484d4a85.tar.gz
Followup for 2783fc7: return an error to the caller if mysql.proc cannot be openedmariadb-10.1.13
Diffstat (limited to 'sql/sp.cc')
-rw-r--r--sql/sp.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sp.cc b/sql/sp.cc
index 3cc24089c40..a518b520786 100644
--- a/sql/sp.cc
+++ b/sql/sp.cc
@@ -1071,6 +1071,7 @@ sp_create_routine(THD *thd, stored_procedure_type type, sp_head *sp)
if (!(table= open_proc_table_for_update(thd)))
{
my_error(ER_SP_STORE_FAILED, MYF(0), SP_TYPE_STRING(type),sp->m_name.str);
+ goto done;
}
else
{