~stewart/drizzle/embedded-innodb-create-select-transaction-arrgh

« back to all changes in this revision

Viewing changes to mysql-test/r/fulltext2.result

  • Committer: brian
  • Date: 2008-06-25 05:29:13 UTC
  • Revision ID: brian@localhost.localdomain-20080625052913-6upwo0jsrl4lnapl
clean slate

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
DROP TABLE IF EXISTS t1;
 
2
CREATE TABLE t1 (
 
3
i int(10) unsigned not null auto_increment primary key,
 
4
a varchar(255) not null,
 
5
FULLTEXT KEY (a)
 
6
) ENGINE=MyISAM;
 
7
repair table t1 quick;
 
8
Table   Op      Msg_type        Msg_text
 
9
test.t1 repair  status  OK
 
10
check table t1;
 
11
Table   Op      Msg_type        Msg_text
 
12
test.t1 check   status  OK
 
13
optimize table t1;
 
14
Table   Op      Msg_type        Msg_text
 
15
test.t1 optimize        status  OK
 
16
check table t1;
 
17
Table   Op      Msg_type        Msg_text
 
18
test.t1 check   status  OK
 
19
select count(*) from t1 where match a against ('aaaxxx');
 
20
count(*)
 
21
260
 
22
select count(*) from t1 where match a against ('aaayyy');
 
23
count(*)
 
24
250
 
25
select count(*) from t1 where match a against ('aaazzz');
 
26
count(*)
 
27
255
 
28
select count(*) from t1 where match a against ('aaaxxx' in boolean mode);
 
29
count(*)
 
30
260
 
31
select count(*) from t1 where match a against ('aaayyy' in boolean mode);
 
32
count(*)
 
33
250
 
34
select count(*) from t1 where match a against ('aaazzz' in boolean mode);
 
35
count(*)
 
36
255
 
37
select count(*) from t1 where match a against ('aaaxxx aaayyy aaazzz');
 
38
count(*)
 
39
765
 
40
select count(*) from t1 where match a against ('aaaxxx aaayyy aaazzz' in boolean mode);
 
41
count(*)
 
42
765
 
43
select count(*) from t1 where match a against ('aaax*' in boolean mode);
 
44
count(*)
 
45
260
 
46
select count(*) from t1 where match a against ('aaay*' in boolean mode);
 
47
count(*)
 
48
250
 
49
select count(*) from t1 where match a against ('aaa*' in boolean mode);
 
50
count(*)
 
51
765
 
52
insert t1 (a) values ('aaaxxx'),('aaayyy');
 
53
insert t1 (a) values ('aaazzz'),('aaazzz'),('aaazzz'),('aaazzz'),('aaazzz');
 
54
select count(*) from t1 where match a against ('aaaxxx');
 
55
count(*)
 
56
261
 
57
select count(*) from t1 where match a against ('aaayyy');
 
58
count(*)
 
59
251
 
60
select count(*) from t1 where match a against ('aaazzz');
 
61
count(*)
 
62
260
 
63
insert t1 (a) values ('aaaxxx 000000');
 
64
select count(*) from t1 where match a against ('000000');
 
65
count(*)
 
66
1
 
67
delete from t1 where match a against ('000000');
 
68
select count(*) from t1 where match a against ('000000');
 
69
count(*)
 
70
0
 
71
select count(*) from t1 where match a against ('aaaxxx');
 
72
count(*)
 
73
261
 
74
delete from t1 where match a against ('aaazzz');
 
75
select count(*) from t1 where match a against ('aaaxxx' in boolean mode);
 
76
count(*)
 
77
261
 
78
select count(*) from t1 where match a against ('aaayyy' in boolean mode);
 
79
count(*)
 
80
251
 
81
select count(*) from t1 where match a against ('aaazzz' in boolean mode);
 
82
count(*)
 
83
0
 
84
select count(*) from t1 where a = 'aaaxxx';
 
85
count(*)
 
86
261
 
87
select count(*) from t1 where a = 'aaayyy';
 
88
count(*)
 
89
251
 
90
select count(*) from t1 where a = 'aaazzz';
 
91
count(*)
 
92
0
 
93
insert t1 (a) values ('aaaxxx 000000');
 
94
select count(*) from t1 where match a against ('000000');
 
95
count(*)
 
96
1
 
97
update t1 set a='aaazzz' where match a against ('000000');
 
98
select count(*) from t1 where match a against ('aaaxxx' in boolean mode);
 
99
count(*)
 
100
261
 
101
select count(*) from t1 where match a against ('aaazzz' in boolean mode);
 
102
count(*)
 
103
1
 
104
update t1 set a='aaazzz' where a = 'aaaxxx';
 
105
update t1 set a='aaaxxx' where a = 'aaayyy';
 
106
select count(*) from t1 where match a against ('aaaxxx' in boolean mode);
 
107
count(*)
 
108
251
 
109
select count(*) from t1 where match a against ('aaayyy' in boolean mode);
 
110
count(*)
 
111
0
 
112
select count(*) from t1 where match a against ('aaazzz' in boolean mode);
 
113
count(*)
 
114
262
 
115
drop table t1;
 
116
CREATE TABLE t1 (
 
117
i int(10) unsigned not null auto_increment primary key,
 
118
a varchar(255) not null,
 
119
FULLTEXT KEY (a)
 
120
) ENGINE=MyISAM;
 
121
select count(*) from t1 where match a against ('aaaxxx');
 
122
count(*)
 
123
260
 
124
select count(*) from t1 where match a against ('aaayyy');
 
125
count(*)
 
126
250
 
127
select count(*) from t1 where match a against ('aaazzz');
 
128
count(*)
 
129
255
 
130
select count(*) from t1 where match a against ('aaaxxx' in boolean mode);
 
131
count(*)
 
132
260
 
133
select count(*) from t1 where match a against ('aaayyy' in boolean mode);
 
134
count(*)
 
135
250
 
136
select count(*) from t1 where match a against ('aaazzz' in boolean mode);
 
137
count(*)
 
138
255
 
139
select count(*) from t1 where match a against ('aaaxxx aaayyy aaazzz');
 
140
count(*)
 
141
765
 
142
select count(*) from t1 where match a against ('aaaxxx aaayyy aaazzz' in boolean mode);
 
143
count(*)
 
144
765
 
145
select count(*) from t1 where match a against ('aaax*' in boolean mode);
 
146
count(*)
 
147
260
 
148
select count(*) from t1 where match a against ('aaay*' in boolean mode);
 
149
count(*)
 
150
250
 
151
select count(*) from t1 where match a against ('aaa*' in boolean mode);
 
152
count(*)
 
153
765
 
154
insert t1 (a) values ('aaaxxx'),('aaayyy');
 
155
insert t1 (a) values ('aaazzz'),('aaazzz'),('aaazzz'),('aaazzz'),('aaazzz');
 
156
select count(*) from t1 where match a against ('aaaxxx');
 
157
count(*)
 
158
261
 
159
select count(*) from t1 where match a against ('aaayyy');
 
160
count(*)
 
161
251
 
162
select count(*) from t1 where match a against ('aaazzz');
 
163
count(*)
 
164
260
 
165
insert t1 (a) values ('aaaxxx 000000');
 
166
select count(*) from t1 where match a against ('000000');
 
167
count(*)
 
168
1
 
169
delete from t1 where match a against ('000000');
 
170
select count(*) from t1 where match a against ('000000');
 
171
count(*)
 
172
0
 
173
select count(*) from t1 where match a against ('aaaxxx');
 
174
count(*)
 
175
261
 
176
delete from t1 where match a against ('aaazzz');
 
177
select count(*) from t1 where match a against ('aaaxxx' in boolean mode);
 
178
count(*)
 
179
261
 
180
select count(*) from t1 where match a against ('aaayyy' in boolean mode);
 
181
count(*)
 
182
251
 
183
select count(*) from t1 where match a against ('aaazzz' in boolean mode);
 
184
count(*)
 
185
0
 
186
select count(*) from t1 where a = 'aaaxxx';
 
187
count(*)
 
188
261
 
189
select count(*) from t1 where a = 'aaayyy';
 
190
count(*)
 
191
251
 
192
select count(*) from t1 where a = 'aaazzz';
 
193
count(*)
 
194
0
 
195
insert t1 (a) values ('aaaxxx 000000');
 
196
select count(*) from t1 where match a against ('000000');
 
197
count(*)
 
198
1
 
199
update t1 set a='aaazzz' where match a against ('000000');
 
200
select count(*) from t1 where match a against ('aaaxxx' in boolean mode);
 
201
count(*)
 
202
261
 
203
select count(*) from t1 where match a against ('aaazzz' in boolean mode);
 
204
count(*)
 
205
1
 
206
update t1 set a='aaazzz' where a = 'aaaxxx';
 
207
update t1 set a='aaaxxx' where a = 'aaayyy';
 
208
select count(*) from t1 where match a against ('aaaxxx' in boolean mode);
 
209
count(*)
 
210
251
 
211
select count(*) from t1 where match a against ('aaayyy' in boolean mode);
 
212
count(*)
 
213
0
 
214
select count(*) from t1 where match a against ('aaazzz' in boolean mode);
 
215
count(*)
 
216
262
 
217
drop table t1;
 
218
set names utf8;
 
219
create table t1(a text,fulltext(a)) collate=utf8_swedish_ci;
 
220
insert into t1 values('test test '),('test'),('test'),('test'),
 
221
('test'),('test'),('test'),('test'),('test'),('test'),('test'),('test'),
 
222
('test'),('test'),('test'),('test'),('test'),('test'),('test'),('test'),
 
223
('test'),('test'),('test'),('test'),('test'),('test'),('test'),('test'),
 
224
('test'),('test'),('test'),('test'),('test'),('test'),('test'),('test'),
 
225
('test'),('test'),('test'),('test'),('test'),('test'),('test'),('test'),
 
226
('test'),('test'),('test'),('test'),('test'),('test'),('test'),('test'),
 
227
('test'),('test'),('test'),('test'),('test'),('test'),('test'),('test'),
 
228
('test'),('test'),('test'),('test'),('test'),('test'),('test'),('test'),
 
229
('test'),('test'),('test'),('test'),('test'),('test'),('test'),('test'),
 
230
('test'),('test'),('test'),('test'),('test'),('test'),('test'),('test'),
 
231
('test'),('test'),('test'),('test'),('test'),('test'),('test'),('test'),
 
232
('test'),('test'),('test'),('test'),('test'),('test'),('test'),('test'),
 
233
('test'),('test'),('test'),('test'),('test'),('test'),('test'),('test'),
 
234
('test'),('test'),('test'),('test'),('test'),('test'),('test'),('test'),
 
235
('test'),('test'),('test'),('test'),('test'),('test'),('test'),('test');
 
236
delete from t1 limit 1;
 
237
truncate table t1;
 
238
insert into t1 values('ab c d');
 
239
update t1 set a='ab c d';
 
240
select * from t1 where match a against('ab c' in boolean mode);
 
241
a
 
242
drop table t1;
 
243
set names latin1;
 
244
SET NAMES utf8;
 
245
CREATE TABLE t1(a VARCHAR(255), FULLTEXT(a)) ENGINE=MyISAM DEFAULT CHARSET=utf8;
 
246
INSERT INTO t1 VALUES('„MySQL“');
 
247
SELECT a FROM t1 WHERE MATCH a AGAINST('“MySQL„' IN BOOLEAN MODE);
 
248
a
 
249
„MySQL“
 
250
DROP TABLE t1;
 
251
SET NAMES latin1;