diff options
author | pem@mysql.com <> | 2006-02-02 15:37:29 +0100 |
---|---|---|
committer | pem@mysql.com <> | 2006-02-02 15:37:29 +0100 |
commit | c5abd52a47bde6c4e7e8db5fe9cf874979f06d0e (patch) | |
tree | 30e361ea345052672b9e276ff2956552012e3a1d /sql/sp.cc | |
parent | 5b1fdbec535ac9efa1d3dd6eb886f6dbdec4b73d (diff) | |
download | mariadb-git-c5abd52a47bde6c4e7e8db5fe9cf874979f06d0e.tar.gz |
Minor fix for BUG#16303 in sp.cc: Simplified code in sp_routine_exists_in_table().
(No change of functionality)
Diffstat (limited to 'sql/sp.cc')
-rw-r--r-- | sql/sp.cc | 4 |
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); } |