Commit 7fd41b20 authored by unknown's avatar unknown
Browse files

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
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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);
  }