1
0
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:
unknown
2004-05-25 12:10:54 +02:00
parent b773b5671b
commit c94b1d606f

View File

@@ -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