Commit 3e4c2766 authored by unknown's avatar unknown

do not accept -R (sort by index) for FULLTEXT indexes

parent d5d69b9c
...@@ -1402,6 +1402,13 @@ static int mi_sort_records(MI_CHECK *param, ...@@ -1402,6 +1402,13 @@ static int mi_sort_records(MI_CHECK *param,
param->error_printed=0; param->error_printed=0;
DBUG_RETURN(-1); DBUG_RETURN(-1);
} }
if (keyinfo->flag & HA_FULLTEXT)
{
mi_check_print_error(param,"Can't sort table '%s' on FULLTEXT key %d",
name,sort_key+1);
param->error_printed=0;
DBUG_RETURN(-1);
}
if (!(param->testflag & T_SILENT)) if (!(param->testflag & T_SILENT))
{ {
printf("- Sorting records for MyISAM-table '%s'\n",name); printf("- Sorting records for MyISAM-table '%s'\n",name);
......
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