summaryrefslogtreecommitdiff
path: root/myisam/ft_static.c
diff options
context:
space:
mode:
authorserg@serg.mysql.com <>2003-01-21 19:24:34 +0100
committerserg@serg.mysql.com <>2003-01-21 19:24:34 +0100
commit0dff67cba243fa260bf901c443c7abaaa68567a9 (patch)
tree2c7d9d1b4d148a8335c0f806f6c7bc3dcab8e3ce /myisam/ft_static.c
parent241f4143e87682942e90ac97b9965f2c77b107b2 (diff)
downloadmariadb-git-0dff67cba243fa260bf901c443c7abaaa68567a9.tar.gz
Two-level index structure for FULLTEXT indexes
Diffstat (limited to 'myisam/ft_static.c')
-rw-r--r--myisam/ft_static.c18
1 files changed, 7 insertions, 11 deletions
diff --git a/myisam/ft_static.c b/myisam/ft_static.c
index 5c2629e9e9e..b714a7f0c35 100644
--- a/myisam/ft_static.c
+++ b/myisam/ft_static.c
@@ -26,25 +26,21 @@ const char *ft_boolean_syntax="+ -><()~*:\"\"&|";
const HA_KEYSEG ft_keysegs[FT_SEGS]={
{
HA_KEYTYPE_VARTEXT, /* type */
- 7, /* language (will be overwritten) */
+ 63, /* language (will be overwritten) */
0, 0, 0, /* null_bit, bit_start, bit_end */
HA_VAR_LENGTH | HA_PACK_KEY, /* flag */
HA_FT_MAXLEN, /* length */
-#ifdef EVAL_RUN
- HA_FT_WLEN+1, /* start */
-#else /* EVAL_RUN */
HA_FT_WLEN, /* start */
-#endif /* EVAL_RUN */
0, /* null_pos */
NULL /* charset */
},
-#ifdef EVAL_RUN
{
- HA_KEYTYPE_INT8, 7, 0, 0, 0, 0, 1, HA_FT_WLEN, 0, NULL
- },
-#endif /* EVAL_RUN */
- {
- HA_FT_WTYPE, 7, 0, 0, 0, HA_NO_SORT, HA_FT_WLEN, 0, 0, NULL
+/*
+ Note, this (and the last HA_KEYTYPE_END) segment should NOT
+ be packed in any way, otherwise w_search() won't be able to
+ update key entry 'in vivo'
+*/
+ HA_FT_WTYPE, 63, 0, 0, 0, HA_NO_SORT, HA_FT_WLEN, 0, 0, NULL
}
};