mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 02:05:57 +01:00
Eliminate compile warnings.
This commit is contained in:
parent
0261d2d9db
commit
136a5412e9
1 changed files with 2 additions and 1 deletions
|
@ -576,6 +576,7 @@ db_load_routine(THD *thd, int type, sp_name *name, sp_head **sphp,
|
|||
if (mysql_opt_change_db(thd, &name->m_db, &saved_cur_db_name, TRUE,
|
||||
&cur_db_changed))
|
||||
{
|
||||
ret= SP_INTERNAL_ERROR;
|
||||
goto end;
|
||||
}
|
||||
|
||||
|
@ -597,7 +598,7 @@ db_load_routine(THD *thd, int type, sp_name *name, sp_head **sphp,
|
|||
if (cur_db_changed && mysql_change_db(thd, &saved_cur_db_name, TRUE))
|
||||
{
|
||||
delete newlex.sphead;
|
||||
ret= -1;
|
||||
ret= SP_INTERNAL_ERROR;
|
||||
goto end;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue