Commit 7fd41b20 authored by unknown's avatar unknown

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

(No change of functionality)


sql/sp.cc:
  Simplified code in sp_routine_exists_in_table().
parent cce719fb
......@@ -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