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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
05390802
Commit
05390802
authored
Jul 02, 2007
by
svoj@june.mysql.com
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
c54bce13
ff9aeb56
Changes
3
Show 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 @
05390802
...
@@ -111,7 +111,7 @@ byte ft_get_word(CHARSET_INFO *cs, byte **start, byte *end,
...
@@ -111,7 +111,7 @@ byte ft_get_word(CHARSET_INFO *cs, byte **start, byte *end,
while
(
doc
<
end
)
while
(
doc
<
end
)
{
{
for
(;
doc
<
end
;
doc
++
)
for
(;
doc
<
end
;
doc
+=
mbl
)
{
{
if
(
true_word_char
(
cs
,
*
doc
))
break
;
if
(
true_word_char
(
cs
,
*
doc
))
break
;
if
(
*
doc
==
FTB_RQUOT
&&
param
->
quot
)
if
(
*
doc
==
FTB_RQUOT
&&
param
->
quot
)
...
@@ -120,6 +120,7 @@ byte ft_get_word(CHARSET_INFO *cs, byte **start, byte *end,
...
@@ -120,6 +120,7 @@ byte ft_get_word(CHARSET_INFO *cs, byte **start, byte *end,
*
start
=
doc
+
1
;
*
start
=
doc
+
1
;
return
3
;
/* FTB_RBR */
return
3
;
/* FTB_RBR */
}
}
mbl
=
my_mbcharlen
(
cs
,
*
(
uchar
*
)
doc
);
if
(
!
param
->
quot
)
if
(
!
param
->
quot
)
{
{
if
(
*
doc
==
FTB_LBR
||
*
doc
==
FTB_RBR
||
*
doc
==
FTB_LQUOT
)
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,
...
@@ -187,10 +188,11 @@ byte ft_simple_get_word(CHARSET_INFO *cs, byte **start, const byte *end,
do
do
{
{
for
(;;
doc
+
+
)
for
(;;
doc
+
=
mbl
)
{
{
if
(
doc
>=
end
)
DBUG_RETURN
(
0
);
if
(
doc
>=
end
)
DBUG_RETURN
(
0
);
if
(
true_word_char
(
cs
,
*
doc
))
break
;
if
(
true_word_char
(
cs
,
*
doc
))
break
;
mbl
=
my_mbcharlen
(
cs
,
*
(
uchar
*
)
doc
);
}
}
mwc
=
length
=
0
;
mwc
=
length
=
0
;
...
...
mysql-test/r/fulltext2.result
View file @
05390802
...
@@ -241,3 +241,15 @@ select * from t1 where match a against('ab c' in boolean mode);
...
@@ -241,3 +241,15 @@ select * from t1 where match a against('ab c' in boolean mode);
a
a
drop table t1;
drop table t1;
set names latin1;
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 @
05390802
...
@@ -220,4 +220,16 @@ select * from t1 where match a against('ab c' in boolean mode);
...
@@ -220,4 +220,16 @@ select * from t1 where match a against('ab c' in boolean mode);
drop
table
t1
;
drop
table
t1
;
set
names
latin1
;
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
# 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