Commit c5abd52a authored by pem@mysql.com's avatar pem@mysql.com

Minor fix for BUG#16303 in sp.cc: Simplified code in sp_routine_exists_in_table().

(No change of functionality)
parent 5b1fdbec
......@@ -1073,9 +1073,7 @@ sp_routine_exists_in_table(THD *thd, int type, sp_name *name)
ret= SP_OPEN_TABLE_FAILED;
else
{
if ((ret= db_find_routine_aux(thd, type, name, table)) == SP_OK)
ret= SP_OK;
else
if ((ret= db_find_routine_aux(thd, type, name, table)) != SP_OK)
ret= SP_KEY_NOT_FOUND;
close_proc_table(thd, &open_tables_state_backup);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment