summaryrefslogtreecommitdiff
path: root/myisam
diff options
context:
space:
mode:
authorunknown <serg@serg.mysql.com>2003-02-22 11:44:26 +0100
committerunknown <serg@serg.mysql.com>2003-02-22 11:44:26 +0100
commit3e4c276693cc8949ccebcae73dcc8c184d90746f (patch)
treec53869843e955176ea01e9b718a9d423d816e01b /myisam
parentd5d69b9ccf462099c24ad73098118e8af0e2c0f0 (diff)
downloadmariadb-git-3e4c276693cc8949ccebcae73dcc8c184d90746f.tar.gz
do not accept -R (sort by index) for FULLTEXT indexes
Diffstat (limited to 'myisam')
-rw-r--r--myisam/myisamchk.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/myisam/myisamchk.c b/myisam/myisamchk.c
index 6c541a444b7..08301af506a 100644
--- a/myisam/myisamchk.c
+++ b/myisam/myisamchk.c
@@ -1402,6 +1402,13 @@ static int mi_sort_records(MI_CHECK *param,
param->error_printed=0;
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))
{
printf("- Sorting records for MyISAM-table '%s'\n",name);