summaryrefslogtreecommitdiff
path: root/myisam
diff options
context:
space:
mode:
authorunknown <ram@mysql.r18.ru>2003-02-26 19:23:11 +0400
committerunknown <ram@mysql.r18.ru>2003-02-26 19:23:11 +0400
commit29a99fa0bee7136d10214d84aa3b484168b60c46 (patch)
treedc2dc0d975a191c52bdf40ae8e82b0ae8256c7cc /myisam
parentd2b0d3fa88a894c6380e577eaa8d10b81f667566 (diff)
parente0100ed8865823b724f899be74a3092db120bbf6 (diff)
downloadmariadb-git-29a99fa0bee7136d10214d84aa3b484168b60c46.tar.gz
Merge rkalimullin@work.mysql.com:/home/bk/mysql-4.1
into mysql.r18.ru:/usr/home/ram/work/mysql-4.1 sql/spatial.cc: Auto merged
Diffstat (limited to 'myisam')
-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);