Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
05b3ff39
Commit
05b3ff39
authored
Nov 08, 2003
by
serg@sergbook.mylan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fulltext.test, fulltext.result:
one simple trunc* test
parent
76ff0478
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
mysql-test/r/fulltext.result
mysql-test/r/fulltext.result
+14
-0
mysql-test/t/fulltext.test
mysql-test/t/fulltext.test
+10
-0
No files found.
mysql-test/r/fulltext.result
View file @
05b3ff39
...
...
@@ -134,6 +134,20 @@ Only MyISAM tables support collections
Function MATCH ... AGAINST() is used to do a search
some test foobar implements vector space model
drop table t1;
create table t1 (a varchar(200) not null, fulltext (a));
insert t1 values ("aaa10 bbb20"), ("aaa20 bbb15"), ("aaa30 bbb10");
select * from t1 where match a against ("+aaa* +bbb*" in boolean mode);
a
aaa10 bbb20
aaa20 bbb15
aaa30 bbb10
select * from t1 where match a against ("+aaa* +bbb1*" in boolean mode);
a
aaa20 bbb15
aaa30 bbb10
select * from t1 where match a against ("+aaa* +ccc*" in boolean mode);
a
drop table t1;
CREATE TABLE t1 (
id int(11),
ticket int(11),
...
...
mysql-test/t/fulltext.test
View file @
05b3ff39
...
...
@@ -70,6 +70,16 @@ delete from t1 where MATCH(a,b) AGAINST ("indexes");
select
*
from
t1
;
drop
table
t1
;
#
# why to scan strings for trunc*
#
create
table
t1
(
a
varchar
(
200
)
not
null
,
fulltext
(
a
));
insert
t1
values
(
"aaa10 bbb20"
),
(
"aaa20 bbb15"
),
(
"aaa30 bbb10"
);
select
*
from
t1
where
match
a
against
(
"+aaa* +bbb*"
in
boolean
mode
);
select
*
from
t1
where
match
a
against
(
"+aaa* +bbb1*"
in
boolean
mode
);
select
*
from
t1
where
match
a
against
(
"+aaa* +ccc*"
in
boolean
mode
);
drop
table
t1
;
#
# Check bug reported by Matthias Urlichs
#
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment