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
4b766950
Commit
4b766950
authored
Jul 09, 2007
by
istruewing@chilla.local
Browse files
Options
Browse Files
Download
Plain Diff
Merge chilla.local:/home/mydev/mysql-5.1-ateam
into chilla.local:/home/mydev/mysql-5.1-axmrg
parents
043cf5bb
c1881105
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
6 deletions
+23
-6
mysql-test/r/fulltext.result
mysql-test/r/fulltext.result
+4
-0
mysql-test/t/fulltext.test
mysql-test/t/fulltext.test
+9
-0
storage/myisam/ft_parser.c
storage/myisam/ft_parser.c
+10
-6
No files found.
mysql-test/r/fulltext.result
View file @
4b766950
...
@@ -476,3 +476,7 @@ ALTER TABLE t1 DISABLE KEYS;
...
@@ -476,3 +476,7 @@ ALTER TABLE t1 DISABLE KEYS;
SELECT * FROM t1 WHERE MATCH(a) AGAINST('test');
SELECT * FROM t1 WHERE MATCH(a) AGAINST('test');
ERROR HY000: Can't find FULLTEXT index matching the column list
ERROR HY000: Can't find FULLTEXT index matching the column list
DROP TABLE t1;
DROP TABLE t1;
CREATE TABLE t1(a VARCHAR(2) CHARACTER SET big5 COLLATE big5_chinese_ci,
FULLTEXT(a));
INSERT INTO t1 VALUES(0xA3C2);
DROP TABLE t1;
mysql-test/t/fulltext.test
View file @
4b766950
...
@@ -399,4 +399,13 @@ ALTER TABLE t1 DISABLE KEYS;
...
@@ -399,4 +399,13 @@ ALTER TABLE t1 DISABLE KEYS;
SELECT
*
FROM
t1
WHERE
MATCH
(
a
)
AGAINST
(
'test'
);
SELECT
*
FROM
t1
WHERE
MATCH
(
a
)
AGAINST
(
'test'
);
DROP
TABLE
t1
;
DROP
TABLE
t1
;
#
# BUG#29464 - load data infile into table with big5 chinese fulltext index
# hangs 100% cpu
#
CREATE
TABLE
t1
(
a
VARCHAR
(
2
)
CHARACTER
SET
big5
COLLATE
big5_chinese_ci
,
FULLTEXT
(
a
));
INSERT
INTO
t1
VALUES
(
0xA3C2
);
DROP
TABLE
t1
;
# End of 4.1 tests
# End of 4.1 tests
storage/myisam/ft_parser.c
View file @
4b766950
...
@@ -111,7 +111,8 @@ uchar ft_get_word(CHARSET_INFO *cs, uchar **start, uchar *end,
...
@@ -111,7 +111,8 @@ uchar ft_get_word(CHARSET_INFO *cs, uchar **start, uchar *end,
{
{
uchar
*
doc
=*
start
;
uchar
*
doc
=*
start
;
int
ctype
;
int
ctype
;
uint
mwc
,
length
,
mbl
;
uint
mwc
,
length
;
int
mbl
;
param
->
yesno
=
(
FTB_YES
==
' '
)
?
1
:
(
param
->
quot
!=
0
);
param
->
yesno
=
(
FTB_YES
==
' '
)
?
1
:
(
param
->
quot
!=
0
);
param
->
weight_adjust
=
param
->
wasign
=
0
;
param
->
weight_adjust
=
param
->
wasign
=
0
;
...
@@ -119,7 +120,7 @@ uchar ft_get_word(CHARSET_INFO *cs, uchar **start, uchar *end,
...
@@ -119,7 +120,7 @@ uchar ft_get_word(CHARSET_INFO *cs, uchar **start, uchar *end,
while
(
doc
<
end
)
while
(
doc
<
end
)
{
{
for
(;
doc
<
end
;
doc
+=
(
mbl
>
0
?
mbl
:
1
))
for
(;
doc
<
end
;
doc
+=
(
mbl
>
0
?
mbl
:
(
mbl
<
0
?
-
mbl
:
1
)
))
{
{
mbl
=
cs
->
cset
->
ctype
(
cs
,
&
ctype
,
(
uchar
*
)
doc
,
(
uchar
*
)
end
);
mbl
=
cs
->
cset
->
ctype
(
cs
,
&
ctype
,
(
uchar
*
)
doc
,
(
uchar
*
)
end
);
if
(
true_word_char
(
ctype
,
*
doc
))
if
(
true_word_char
(
ctype
,
*
doc
))
...
@@ -157,7 +158,8 @@ uchar ft_get_word(CHARSET_INFO *cs, uchar **start, uchar *end,
...
@@ -157,7 +158,8 @@ uchar ft_get_word(CHARSET_INFO *cs, uchar **start, uchar *end,
}
}
mwc
=
length
=
0
;
mwc
=
length
=
0
;
for
(
word
->
pos
=
doc
;
doc
<
end
;
length
++
,
doc
+=
(
mbl
>
0
?
mbl
:
1
))
for
(
word
->
pos
=
doc
;
doc
<
end
;
length
++
,
doc
+=
(
mbl
>
0
?
mbl
:
(
mbl
<
0
?
-
mbl
:
1
)))
{
{
mbl
=
cs
->
cset
->
ctype
(
cs
,
&
ctype
,
(
uchar
*
)
doc
,
(
uchar
*
)
end
);
mbl
=
cs
->
cset
->
ctype
(
cs
,
&
ctype
,
(
uchar
*
)
doc
,
(
uchar
*
)
end
);
if
(
true_word_char
(
ctype
,
*
doc
))
if
(
true_word_char
(
ctype
,
*
doc
))
...
@@ -200,13 +202,14 @@ uchar ft_simple_get_word(CHARSET_INFO *cs, uchar **start, const uchar *end,
...
@@ -200,13 +202,14 @@ uchar ft_simple_get_word(CHARSET_INFO *cs, uchar **start, const uchar *end,
FT_WORD
*
word
,
my_bool
skip_stopwords
)
FT_WORD
*
word
,
my_bool
skip_stopwords
)
{
{
uchar
*
doc
=
*
start
;
uchar
*
doc
=
*
start
;
uint
mwc
,
length
,
mbl
;
uint
mwc
,
length
;
int
mbl
;
int
ctype
;
int
ctype
;
DBUG_ENTER
(
"ft_simple_get_word"
);
DBUG_ENTER
(
"ft_simple_get_word"
);
do
do
{
{
for
(;;
doc
+=
(
mbl
>
0
?
mbl
:
1
))
for
(;;
doc
+=
(
mbl
>
0
?
mbl
:
(
mbl
<
0
?
-
mbl
:
1
)
))
{
{
if
(
doc
>=
end
)
if
(
doc
>=
end
)
DBUG_RETURN
(
0
);
DBUG_RETURN
(
0
);
...
@@ -216,7 +219,8 @@ uchar ft_simple_get_word(CHARSET_INFO *cs, uchar **start, const uchar *end,
...
@@ -216,7 +219,8 @@ uchar ft_simple_get_word(CHARSET_INFO *cs, uchar **start, const uchar *end,
}
}
mwc
=
length
=
0
;
mwc
=
length
=
0
;
for
(
word
->
pos
=
doc
;
doc
<
end
;
length
++
,
doc
+=
(
mbl
>
0
?
mbl
:
1
))
for
(
word
->
pos
=
doc
;
doc
<
end
;
length
++
,
doc
+=
(
mbl
>
0
?
mbl
:
(
mbl
<
0
?
-
mbl
:
1
)))
{
{
mbl
=
cs
->
cset
->
ctype
(
cs
,
&
ctype
,
(
uchar
*
)
doc
,
(
uchar
*
)
end
);
mbl
=
cs
->
cset
->
ctype
(
cs
,
&
ctype
,
(
uchar
*
)
doc
,
(
uchar
*
)
end
);
if
(
true_word_char
(
ctype
,
*
doc
))
if
(
true_word_char
(
ctype
,
*
doc
))
...
...
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