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
e1e82a4e
Commit
e1e82a4e
authored
Nov 03, 2003
by
serg@serg.mylan
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal:/home/bk/mysql-4.0/
into serg.mylan:/usr/home/serg/Abk/mysql-4.0
parents
2aff1b52
5505abe1
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletion
+9
-1
myisam/ft_boolean_search.c
myisam/ft_boolean_search.c
+1
-1
mysql-test/r/fulltext.result
mysql-test/r/fulltext.result
+2
-0
mysql-test/t/fulltext.test
mysql-test/t/fulltext.test
+6
-0
No files found.
myisam/ft_boolean_search.c
View file @
e1e82a4e
...
@@ -308,7 +308,7 @@ FT_INFO * ft_init_boolean_search(MI_INFO *info, uint keynr, byte *query,
...
@@ -308,7 +308,7 @@ FT_INFO * ft_init_boolean_search(MI_INFO *info, uint keynr, byte *query,
Hack: instead of init_queue, we'll use reinit queue to be able
Hack: instead of init_queue, we'll use reinit queue to be able
to alloc queue with alloc_root()
to alloc queue with alloc_root()
*/
*/
res
=
ftb
->
queue
.
max_elements
=
1
+
query_len
/
(
ft_min_word_len
+
1
);
res
=
ftb
->
queue
.
max_elements
=
1
+
query_len
/
(
min
(
ft_min_word_len
,
2
)
+
1
);
ftb
->
queue
.
root
=
(
byte
**
)
alloc_root
(
&
ftb
->
mem_root
,
(
res
+
1
)
*
sizeof
(
void
*
));
ftb
->
queue
.
root
=
(
byte
**
)
alloc_root
(
&
ftb
->
mem_root
,
(
res
+
1
)
*
sizeof
(
void
*
));
reinit_queue
(
&
ftb
->
queue
,
res
,
0
,
0
,
reinit_queue
(
&
ftb
->
queue
,
res
,
0
,
0
,
(
int
(
*
)(
void
*
,
byte
*
,
byte
*
))
FTB_WORD_cmp
,
0
);
(
int
(
*
)(
void
*
,
byte
*
,
byte
*
))
FTB_WORD_cmp
,
0
);
...
...
mysql-test/r/fulltext.result
View file @
e1e82a4e
...
@@ -266,4 +266,6 @@ insert into t2 values (3, 1, 'xxbuz');
...
@@ -266,4 +266,6 @@ insert into t2 values (3, 1, 'xxbuz');
select * from t1 join t2 using(`t1_id`) where match (t1.name, t2.name) against('xxfoo' in boolean mode);
select * from t1 join t2 using(`t1_id`) where match (t1.name, t2.name) against('xxfoo' in boolean mode);
t1_id name t2_id t1_id name
t1_id name t2_id t1_id name
1 data1 1 1 xxfoo
1 data1 1 1 xxfoo
select * from t2 where match name against ('a* b* c* d* e* f*' in boolean mode);
t2_id t1_id name
drop table t1,t2;
drop table t1,t2;
mysql-test/t/fulltext.test
View file @
e1e82a4e
...
@@ -213,5 +213,11 @@ insert into t2 values (1, 1, 'xxfoo');
...
@@ -213,5 +213,11 @@ insert into t2 values (1, 1, 'xxfoo');
insert
into
t2
values
(
2
,
1
,
'xxbar'
);
insert
into
t2
values
(
2
,
1
,
'xxbar'
);
insert
into
t2
values
(
3
,
1
,
'xxbuz'
);
insert
into
t2
values
(
3
,
1
,
'xxbuz'
);
select
*
from
t1
join
t2
using
(
`t1_id`
)
where
match
(
t1
.
name
,
t2
.
name
)
against
(
'xxfoo'
in
boolean
mode
);
select
*
from
t1
join
t2
using
(
`t1_id`
)
where
match
(
t1
.
name
,
t2
.
name
)
against
(
'xxfoo'
in
boolean
mode
);
#
# bug with many short (< ft_min_word_len) words in boolean search
#
select
*
from
t2
where
match
name
against
(
'a* b* c* d* e* f*'
in
boolean
mode
);
drop
table
t1
,
t2
;
drop
table
t1
,
t2
;
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