mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
minor error messages cleanup
This commit is contained in:
@ -3589,8 +3589,13 @@ int mysql_revoke_all(THD *thd, List <LEX_USER> &list)
|
|||||||
VOID(pthread_mutex_unlock(&acl_cache->lock));
|
VOID(pthread_mutex_unlock(&acl_cache->lock));
|
||||||
rw_unlock(&LOCK_grant);
|
rw_unlock(&LOCK_grant);
|
||||||
close_thread_tables(thd);
|
close_thread_tables(thd);
|
||||||
|
#ifdef TO_BE_DELETED
|
||||||
|
/* XXX this should not be necessary. The error message is already printed */
|
||||||
|
/* when this code is deleted, the error slot (error 1268) can be reused,
|
||||||
|
as this error code was not present in any MySQL release */
|
||||||
if (result)
|
if (result)
|
||||||
my_error(ER_REVOKE_GRANTS, MYF(0));
|
my_error(ER_REVOKE_GRANTS, MYF(0));
|
||||||
|
#endif
|
||||||
DBUG_RETURN(result);
|
DBUG_RETURN(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -493,8 +493,7 @@ int multi_update::prepare(List<Item> ¬_used_values, SELECT_LEX_UNIT *unit)
|
|||||||
|
|
||||||
if (!tables_to_update)
|
if (!tables_to_update)
|
||||||
{
|
{
|
||||||
my_error(ER_NOT_SUPPORTED_YET, MYF(0),
|
my_error(ER_NO_TABLES_USED, MYF(0));
|
||||||
"You didn't specify any tables to UPDATE");
|
|
||||||
DBUG_RETURN(1);
|
DBUG_RETURN(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user