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
7fff8afe
Commit
7fff8afe
authored
Nov 20, 2002
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge work:/home/bk/mysql-4.0
into serg.mysql.com:/usr/home/serg/Abk/mysql-4.0
parents
fcc9cce4
bbeeee13
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
5 deletions
+11
-5
myisam/ft_boolean_search.c
myisam/ft_boolean_search.c
+3
-3
myisammrg/myrg_range.c
myisammrg/myrg_range.c
+4
-2
mysql-test/r/fulltext.result
mysql-test/r/fulltext.result
+3
-0
mysql-test/t/fulltext.test
mysql-test/t/fulltext.test
+1
-0
No files found.
myisam/ft_boolean_search.c
View file @
7fff8afe
...
...
@@ -348,9 +348,9 @@ static int _ftb_strstr(const byte *s0, const byte *e0,
if
(
s0
>=
e0
)
return
0
;
p
=
s1
+
1
;
while
(
s0
<
e0
&&
p
<
e1
&&
cs
->
to_upper
[(
uint
)
(
uchar
)
*
s0
++
]
==
cs
->
to_upper
[(
uint
)
(
uchar
)
*
p
++
])
/* no-op */
;
while
(
s0
<
e0
&&
p
<
e1
&&
cs
->
to_upper
[(
uint
)
(
uchar
)
*
s0
]
==
cs
->
to_upper
[(
uint
)
(
uchar
)
*
p
])
s0
++
,
p
++
;
if
(
p
>=
e1
)
return
1
;
}
...
...
myisammrg/myrg_range.c
View file @
7fff8afe
...
...
@@ -30,8 +30,10 @@ ha_rows myrg_records_in_range(MYRG_INFO *info, int inx, const byte *start_key,
res
=
mi_records_in_range
(
table
->
table
,
inx
,
start_key
,
start_key_len
,
start_search_flag
,
end_key
,
end_key_len
,
end_search_flag
);
if
(
res
==
HA_POS_ERROR
||
records
>
HA_POS_ERROR
-
res
)
return
res
;
if
(
res
==
HA_POS_ERROR
)
return
HA_POS_ERROR
;
if
(
records
>
HA_POS_ERROR
-
res
)
return
HA_POS_ERROR
-
1
;
records
+=
res
;
}
return
records
;
...
...
mysql-test/r/fulltext.result
View file @
7fff8afe
...
...
@@ -85,6 +85,9 @@ Full-text search in MySQL implements vector space model
select * from t1 where MATCH a,b AGAINST ('"text search" +"now support"' IN BOOLEAN MODE);
a b
MySQL has now support for full-text search
select * from t1 where MATCH a,b AGAINST ('"text i"' IN BOOLEAN MODE);
a b
Full-text indexes are called collections
select * from t1 where MATCH a AGAINST ("search" IN BOOLEAN MODE);
a b
Full-text search in MySQL implements vector space model
...
...
mysql-test/t/fulltext.test
View file @
7fff8afe
...
...
@@ -40,6 +40,7 @@ select * from t1 where MATCH a,b AGAINST ('"Now sUPPort"' IN BOOLEAN MODE);
select
*
from
t1
where
MATCH
a
,
b
AGAINST
(
'"text search" "now support"'
IN
BOOLEAN
MODE
);
select
*
from
t1
where
MATCH
a
,
b
AGAINST
(
'"text search" -"now support"'
IN
BOOLEAN
MODE
);
select
*
from
t1
where
MATCH
a
,
b
AGAINST
(
'"text search" +"now support"'
IN
BOOLEAN
MODE
);
select
*
from
t1
where
MATCH
a
,
b
AGAINST
(
'"text i"'
IN
BOOLEAN
MODE
);
# boolean w/o index:
...
...
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