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
cb2d6a00
Commit
cb2d6a00
authored
Feb 09, 2010
by
Sergey Vojtovich
Browse files
Options
Browse Files
Download
Plain Diff
Merge fix for bug50351 to mysql-5.1-bugteam.
parents
7feb91e7
dac9e518
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
1 deletion
+52
-1
mysql-test/r/fulltext.result
mysql-test/r/fulltext.result
+20
-0
mysql-test/t/fulltext.test
mysql-test/t/fulltext.test
+21
-0
storage/myisam/ft_boolean_search.c
storage/myisam/ft_boolean_search.c
+11
-1
No files found.
mysql-test/r/fulltext.result
View file @
cb2d6a00
...
...
@@ -603,6 +603,26 @@ WHERE t3.a=t1.a AND MATCH(b2) AGAINST('scargill' IN BOOLEAN MODE)
count(*)
0
DROP TABLE t1,t2,t3;
CREATE TABLE t1 (a VARCHAR(4), FULLTEXT(a));
INSERT INTO t1 VALUES
('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),
('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),
('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),
('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),
('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),
('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),
('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),
('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),
('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),
('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),
('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),
('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),
('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('cwrd'),('awrd'),('cwrd'),
('awrd');
SELECT COUNT(*) FROM t1 WHERE MATCH(a) AGAINST("+awrd bwrd* +cwrd*" IN BOOLEAN MODE);
COUNT(*)
0
DROP TABLE t1;
#
# Bug #49445: Assertion failed: 0, file .\item_row.cc, line 55 with
# fulltext search and row op
...
...
mysql-test/t/fulltext.test
View file @
cb2d6a00
...
...
@@ -544,6 +544,27 @@ SELECT count(*) FROM t1 WHERE
DROP
TABLE
t1
,
t2
,
t3
;
#
# BUG#50351 - ft_min_word_len=2 Causes query to hang
#
CREATE
TABLE
t1
(
a
VARCHAR
(
4
),
FULLTEXT
(
a
));
INSERT
INTO
t1
VALUES
(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),
(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),
(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),
(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),
(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),
(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),
(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),
(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),
(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),
(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),
(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),
(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),
(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'cwrd'
),(
'awrd'
),(
'cwrd'
),
(
'awrd'
);
SELECT
COUNT
(
*
)
FROM
t1
WHERE
MATCH
(
a
)
AGAINST
(
"+awrd bwrd* +cwrd*"
IN
BOOLEAN
MODE
);
DROP
TABLE
t1
;
--
echo
#
--
echo
# Bug #49445: Assertion failed: 0, file .\item_row.cc, line 55 with
...
...
storage/myisam/ft_boolean_search.c
View file @
cb2d6a00
...
...
@@ -437,8 +437,18 @@ static int _ft2_search(FTB *ftb, FTB_WORD *ftbw, my_bool init_search)
return
0
;
}
/* going up to the first-level tree to continue search there */
/*
Going up to the first-level tree to continue search there.
Only done when performing prefix search.
Key buffer data pointer as well as docid[0] may be smaller
than values we got while searching first-level tree. Thus
they must be restored to original values to avoid dead-loop,
when subsequent search for a bigger value eventually ends up
in this same second-level tree.
*/
_mi_dpointer
(
info
,
(
uchar
*
)
(
lastkey_buf
+
HA_FT_WLEN
),
ftbw
->
key_root
);
ftbw
->
docid
[
0
]
=
ftbw
->
key_root
;
ftbw
->
key_root
=
info
->
s
->
state
.
key_root
[
ftb
->
keynr
];
ftbw
->
keyinfo
=
info
->
s
->
keyinfo
+
ftb
->
keynr
;
ftbw
->
off
=
0
;
...
...
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