summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorunknown <pem@mysql.com>2006-02-02 15:37:29 +0100
committerunknown <pem@mysql.com>2006-02-02 15:37:29 +0100
commit7fd41b20a03e3ce36add69dbd6bdf46e90cf0349 (patch)
tree30e361ea345052672b9e276ff2956552012e3a1d /sql
parentcce719fba8e143c6a94f5c4048e1b72d005b1dd2 (diff)
downloadmariadb-git-7fd41b20a03e3ce36add69dbd6bdf46e90cf0349.tar.gz
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().
Diffstat (limited to 'sql')
-rw-r--r--sql/sp.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/sql/sp.cc b/sql/sp.cc
index d2aaa5646a8..fe249141fea 100644
--- a/sql/sp.cc
+++ b/sql/sp.cc
@@ -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);
}