summaryrefslogtreecommitdiff
path: root/myisam/myisamchk.c
diff options
context:
space:
mode:
authormonty@narttu.mysql.fi <>2003-02-26 01:03:47 +0200
committermonty@narttu.mysql.fi <>2003-02-26 01:03:47 +0200
commit9a46698e1efe164ac17ce0ca82b8e8ed12892c09 (patch)
treec9b14451b3f66dc4b11dc35d49edd35f23787e07 /myisam/myisamchk.c
parentf4e1a2f292a03f4d9b5072365ef6e9ebac1cb595 (diff)
parent045ac4b84b783fd93edd45abdd63b87a04584987 (diff)
downloadmariadb-git-9a46698e1efe164ac17ce0ca82b8e8ed12892c09.tar.gz
Merge with 4.0.11
Diffstat (limited to 'myisam/myisamchk.c')
-rw-r--r--myisam/myisamchk.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/myisam/myisamchk.c b/myisam/myisamchk.c
index 0a5aa889a1a..104b344a9e2 100644
--- a/myisam/myisamchk.c
+++ b/myisam/myisamchk.c
@@ -962,11 +962,11 @@ static int myisamchk(MI_CHECK *param, my_string filename)
uint key;
/*
We can't update the index in mi_sort_records if we have a
- prefix compressed index
+ prefix compressed or fulltext index
*/
my_bool update_index=1;
for (key=0 ; key < share->base.keys; key++)
- if (share->keyinfo[key].flag & HA_BINARY_PACK_KEY)
+ if (share->keyinfo[key].flag & (HA_BINARY_PACK_KEY|HA_FULLTEXT))
update_index=0;
error=mi_sort_records(param,info,filename,param->opt_sort_key,
@@ -1417,6 +1417,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);