mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
MDEV-4450 misleading error messages from init_from_sql_statement_string()
This commit is contained in:
@ -4336,8 +4336,13 @@ static my_bool discover_handlerton(THD *thd, plugin_ref plugin,
|
||||
{
|
||||
if (error)
|
||||
{
|
||||
DBUG_ASSERT(share->error); // MUST be always set for get_cached_table_share to work
|
||||
my_error(ER_GET_ERRNO, MYF(0), error, plugin_name(plugin)->str);
|
||||
DBUG_ASSERT(share->error); // get_cached_table_share needs that
|
||||
/*
|
||||
report an error, unless it is "generic" and a more
|
||||
specific one was already reported
|
||||
*/
|
||||
if (error != HA_ERR_GENERIC || !thd->is_error())
|
||||
my_error(ER_GET_ERRNO, MYF(0), error, plugin_name(plugin)->str);
|
||||
share->db_plugin= 0;
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user