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
687ebba4
Commit
687ebba4
authored
Jul 31, 2003
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug #942. docid == ftb->lastpos in join on looping over nested table
parent
20e39672
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
3 deletions
+28
-3
myisam/ft_boolean_search.c
myisam/ft_boolean_search.c
+2
-2
mysql-test/r/fulltext.result
mysql-test/r/fulltext.result
+11
-0
mysql-test/t/fulltext.test
mysql-test/t/fulltext.test
+15
-1
No files found.
myisam/ft_boolean_search.c
View file @
687ebba4
...
...
@@ -299,7 +299,7 @@ FT_INFO * ft_init_boolean_search(MI_INFO *info, uint keynr, byte *query,
default_charset_info
:
info
->
s
->
keyinfo
[
keynr
].
seg
->
charset
);
ftb
->
with_scan
=
0
;
ftb
->
lastpos
=
0
;
ftb
->
lastpos
=
HA_POS_ERROR
;
bzero
(
&
ftb
->
no_dupes
,
sizeof
(
TREE
));
init_alloc_root
(
&
ftb
->
mem_root
,
1024
,
1024
);
...
...
@@ -543,7 +543,7 @@ float ft_boolean_find_relevance(FT_INFO *ftb, byte *record, uint length)
if
(
!
ftb
->
queue
.
elements
)
return
0
;
if
(
ftb
->
state
!=
INDEX_SEARCH
&&
docid
<
ftb
->
lastpos
)
if
(
ftb
->
state
!=
INDEX_SEARCH
&&
docid
<
=
ftb
->
lastpos
)
{
FTB_EXPR
*
x
;
uint
i
;
...
...
mysql-test/r/fulltext.result
View file @
687ebba4
...
...
@@ -256,3 +256,14 @@ select ref_mag from t1 where match ref_mag against ('+test' in boolean mode);
ref_mag
test
drop table t1;
create table t1 (t1_id int(11) primary key, name varchar(32));
insert into t1 values (1, 'data1');
insert into t1 values (2, 'data2');
create table t2 (t2_id int(11) primary key, t1_id int(11), name varchar(32));
insert into t2 values (1, 1, 'xxfoo');
insert into t2 values (2, 1, 'xxbar');
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);
t1_id name t2_id t1_id name
1 data1 1 1 xxfoo
drop table t1,t2;
mysql-test/t/fulltext.test
View file @
687ebba4
...
...
@@ -189,7 +189,7 @@ select * from t1 where match (a) against ('aaaa');
drop
table
t1
;
#
# bug 283 by jocelyn fournier <joc@presence-pc.com>
# bug
#
283 by jocelyn fournier <joc@presence-pc.com>
# FULLTEXT index on a TEXT filed converted to a CHAR field doesn't work anymore
#
...
...
@@ -201,3 +201,17 @@ alter table t1 change ref_mag ref_mag char (255) not null;
select
ref_mag
from
t1
where
match
ref_mag
against
(
'+test'
in
boolean
mode
);
drop
table
t1
;
#
# bug #942: JOIN
#
create
table
t1
(
t1_id
int
(
11
)
primary
key
,
name
varchar
(
32
));
insert
into
t1
values
(
1
,
'data1'
);
insert
into
t1
values
(
2
,
'data2'
);
create
table
t2
(
t2_id
int
(
11
)
primary
key
,
t1_id
int
(
11
),
name
varchar
(
32
));
insert
into
t2
values
(
1
,
1
,
'xxfoo'
);
insert
into
t2
values
(
2
,
1
,
'xxbar'
);
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
);
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