Commit c94b1d60 authored by unknown's avatar unknown

Uses table_type() function to get name of storage engine before printing...

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
parent b773b567
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment