mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Uses table_type() function to get name of storage engine before printing engine specific error message.
sql/handler.cc: Use table_type to get "name" of this handler
This commit is contained in:
@@ -1127,7 +1127,7 @@ void handler::print_error(int error, myf errflag)
|
||||
temporary= get_error_message(error, &str);
|
||||
if (!str.is_empty())
|
||||
{
|
||||
const char* engine= ha_get_storage_engine(table->db_type);
|
||||
const char* engine= table_type();
|
||||
if (temporary)
|
||||
my_error(ER_GET_TEMPORARY_ERRMSG,MYF(0),error,str.ptr(),engine);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user