@@ -39,9 +39,39 @@ repair table t1;
3939check table t1;
4040repair table t1;
4141
42+ select count(*) from t1 where match a against ('aaaxxx');
43+ select count(*) from t1 where match a against ('aaayyy');
4244select count(*) from t1 where match a against ('aaaxxx' in boolean mode);
45+ select count(*) from t1 where match a against ('aaayyy' in boolean mode);
46+
47+ select count(*) from t1 where match a against ('aaax*' in boolean mode);
48+ select count(*) from t1 where match a against ('aaay*' in boolean mode);
49+ select count(*) from t1 where match a against ('aaa*' in boolean mode);
4350
4451# mi_write:
4552insert t1 (a) values ('aaaxxx'),('aaayyy');
53+ # call to enlarge_root() below
54+ select count(*) from t1 where match a against ('aaaxxx' in boolean mode);
55+ select count(*) from t1 where match a against ('aaayyy');
56+
57+ # mi_delete
58+ insert t1 (a) values ('aaaxxx 000000');
59+ select count(*) from t1 where match a against ('000000');
60+ delete from t1 where match a against ('000000');
61+ select count(*) from t1 where match a against ('000000');
62+ select count(*) from t1 where match a against ('aaaxxx');
63+ select count(*) from t1 where match a against ('aaaxxx' in boolean mode);
64+ select count(*) from t1 where match a against ('aaayyy' in boolean mode);
65+ # double-check without index
66+ select count(*) from t1 where a = 'aaaxxx';
67+ select count(*) from t1 where a = 'aaayyy';
68+
69+ # update
70+ insert t1 (a) values ('aaaxxx 000000');
71+ select count(*) from t1 where match a against ('000000');
72+ select count(*) from t1 where match a against ('aaaxxx' in boolean mode);
73+ update t1 set a='aaaxxx' where a = 'aaayyy';
74+ select count(*) from t1 where match a against ('aaaxxx' in boolean mode);
75+ select count(*) from t1 where match a against ('aaayyy' in boolean mode);
4676
4777drop table t1;
0 commit comments