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
e9b17000
Commit
e9b17000
authored
Jul 02, 2007
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/svoj/devel/bk/mysql-5.0-engines
into mysql.com:/home/svoj/devel/mysql/BUG29299/mysql-5.0-engines
parents
cc3ace49
7efddc27
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
2 deletions
+28
-2
myisam/ft_parser.c
myisam/ft_parser.c
+4
-2
mysql-test/r/fulltext2.result
mysql-test/r/fulltext2.result
+12
-0
mysql-test/t/fulltext2.test
mysql-test/t/fulltext2.test
+12
-0
No files found.
myisam/ft_parser.c
View file @
e9b17000
...
...
@@ -111,7 +111,7 @@ byte ft_get_word(CHARSET_INFO *cs, byte **start, byte *end,
while
(
doc
<
end
)
{
for
(;
doc
<
end
;
doc
++
)
for
(;
doc
<
end
;
doc
+=
mbl
)
{
if
(
true_word_char
(
cs
,
*
doc
))
break
;
if
(
*
doc
==
FTB_RQUOT
&&
param
->
quot
)
...
...
@@ -120,6 +120,7 @@ byte ft_get_word(CHARSET_INFO *cs, byte **start, byte *end,
*
start
=
doc
+
1
;
return
3
;
/* FTB_RBR */
}
mbl
=
my_mbcharlen
(
cs
,
*
(
uchar
*
)
doc
);
if
(
!
param
->
quot
)
{
if
(
*
doc
==
FTB_LBR
||
*
doc
==
FTB_RBR
||
*
doc
==
FTB_LQUOT
)
...
...
@@ -187,10 +188,11 @@ byte ft_simple_get_word(CHARSET_INFO *cs, byte **start, const byte *end,
do
{
for
(;;
doc
+
+
)
for
(;;
doc
+
=
mbl
)
{
if
(
doc
>=
end
)
DBUG_RETURN
(
0
);
if
(
true_word_char
(
cs
,
*
doc
))
break
;
mbl
=
my_mbcharlen
(
cs
,
*
(
uchar
*
)
doc
);
}
mwc
=
length
=
0
;
...
...
mysql-test/r/fulltext2.result
View file @
e9b17000
...
...
@@ -241,3 +241,15 @@ select * from t1 where match a against('ab c' in boolean mode);
a
drop table t1;
set names latin1;
CREATE TABLE t1(a VARCHAR(255) CHARACTER SET gbk, FULLTEXT(a));
SET NAMES utf8;
INSERT INTO t1 VALUES(0xF043616161),(0xBEF361616197C22061616161);
SELECT HEX(a) FROM t1 WHERE MATCH(a) AGAINST(0x97C22061616161 IN BOOLEAN MODE);
HEX(a)
BEF361616197C22061616161
DELETE FROM t1 LIMIT 1;
CHECK TABLE t1;
Table Op Msg_type Msg_text
test.t1 check status OK
SET NAMES latin1;
DROP TABLE t1;
mysql-test/t/fulltext2.test
View file @
e9b17000
...
...
@@ -220,4 +220,16 @@ select * from t1 where match a against('ab c' in boolean mode);
drop
table
t1
;
set
names
latin1
;
#
# BUG#29299 - repeatable myisam fulltext index corruption
#
CREATE
TABLE
t1
(
a
VARCHAR
(
255
)
CHARACTER
SET
gbk
,
FULLTEXT
(
a
));
SET
NAMES
utf8
;
INSERT
INTO
t1
VALUES
(
0xF043616161
),(
0xBEF361616197C22061616161
);
SELECT
HEX
(
a
)
FROM
t1
WHERE
MATCH
(
a
)
AGAINST
(
0x97C22061616161
IN
BOOLEAN
MODE
);
DELETE
FROM
t1
LIMIT
1
;
CHECK
TABLE
t1
;
SET
NAMES
latin1
;
DROP
TABLE
t1
;
# End of 4.1 tests
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