blob: 1e4e6636ef603e0305ca022a6ee6d17a6c2baccb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
CREATE TABLE t1 (
i int(10) unsigned not null auto_increment primary key,
a varchar(255) not null,
FULLTEXT KEY (a)
) ENGINE=Aria ROW_FORMAT=DYNAMIC MAX_ROWS=2000000000000;
repair table t1 quick;
Table Op Msg_type Msg_text
test.t1 repair status OK
check table t1;
Table Op Msg_type Msg_text
test.t1 check status OK
repair table t1;
Table Op Msg_type Msg_text
test.t1 repair status OK
check table t1;
Table Op Msg_type Msg_text
test.t1 check status OK
repair table t1;
Table Op Msg_type Msg_text
test.t1 repair status OK
select count(*) from t1 where match a against ('aaaxxx');
count(*)
0
select count(*) from t1 where match a against ('aaayyy');
count(*)
150
select count(*) from t1 where match a against ('aaaxxx' in boolean mode);
count(*)
1024
select count(*) from t1 where match a against ('aaayyy' in boolean mode);
count(*)
150
select count(*) from t1 where match a against ('aaax*' in boolean mode);
count(*)
1024
select count(*) from t1 where match a against ('aaay*' in boolean mode);
count(*)
150
select count(*) from t1 where match a against ('aaa*' in boolean mode);
count(*)
1174
insert t1 (a) values ('aaaxxx'),('aaayyy');
select count(*) from t1 where match a against ('aaaxxx' in boolean mode);
count(*)
1025
select count(*) from t1 where match a against ('aaayyy');
count(*)
151
insert t1 (a) values ('aaaxxx 000000');
select count(*) from t1 where match a against ('000000');
count(*)
1
delete from t1 where match a against ('000000');
select count(*) from t1 where match a against ('000000');
count(*)
0
select count(*) from t1 where match a against ('aaaxxx');
count(*)
0
select count(*) from t1 where match a against ('aaaxxx' in boolean mode);
count(*)
1025
select count(*) from t1 where match a against ('aaayyy' in boolean mode);
count(*)
151
select count(*) from t1 where a = 'aaaxxx';
count(*)
1025
select count(*) from t1 where a = 'aaayyy';
count(*)
151
insert t1 (a) values ('aaaxxx 000000');
select count(*) from t1 where match a against ('000000');
count(*)
1
select count(*) from t1 where match a against ('aaaxxx' in boolean mode);
count(*)
1026
update t1 set a='aaaxxx' where a = 'aaayyy';
select count(*) from t1 where match a against ('aaaxxx' in boolean mode);
count(*)
1177
select count(*) from t1 where match a against ('aaayyy' in boolean mode);
count(*)
0
drop table t1;
|