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.
parent 3e9866e7
...@@ -1127,7 +1127,7 @@ void handler::print_error(int error, myf errflag) ...@@ -1127,7 +1127,7 @@ void handler::print_error(int error, myf errflag)
temporary= get_error_message(error, &str); temporary= get_error_message(error, &str);
if (!str.is_empty()) if (!str.is_empty())
{ {
const char* engine= ha_get_storage_engine(table->db_type); const char* engine= table_type();
if (temporary) if (temporary)
my_error(ER_GET_TEMPORARY_ERRMSG,MYF(0),error,str.ptr(),engine); my_error(ER_GET_TEMPORARY_ERRMSG,MYF(0),error,str.ptr(),engine);
else 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