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
0f98bf44
Commit
0f98bf44
authored
Aug 02, 2005
by
svoj@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/svoj/devel/mysql/BUG11684/mysql-4.0
into mysql.com:/home/svoj/devel/mysql/BUG11684/mysql-4.1
parents
ca568830
19fe33e1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
6 deletions
+27
-6
myisam/sort.c
myisam/sort.c
+8
-6
mysql-test/r/fulltext.result
mysql-test/r/fulltext.result
+8
-0
mysql-test/t/fulltext.test
mysql-test/t/fulltext.test
+11
-0
No files found.
myisam/sort.c
View file @
0f98bf44
...
@@ -587,13 +587,15 @@ int thr_write_keys(MI_SORT_PARAM *sort_param)
...
@@ -587,13 +587,15 @@ int thr_write_keys(MI_SORT_PARAM *sort_param)
while
(
!
got_error
&&
while
(
!
got_error
&&
!
my_b_read
(
&
sinfo
->
tempfile_for_exceptions
,(
byte
*
)
&
key_length
,
!
my_b_read
(
&
sinfo
->
tempfile_for_exceptions
,(
byte
*
)
&
key_length
,
sizeof
(
key_length
))
&&
sizeof
(
key_length
)))
!
my_b_read
(
&
sinfo
->
tempfile_for_exceptions
,(
byte
*
)
mergebuf
,
(
uint
)
key_length
))
{
{
if
(
_mi_ck_write
(
info
,
sinfo
->
key
,(
uchar
*
)
mergebuf
,
byte
ft_buf
[
HA_FT_MAXLEN
+
HA_FT_WLEN
+
10
];
key_length
-
info
->
s
->
rec_reflength
))
if
(
key_length
>
sizeof
(
ft_buf
)
||
got_error
=
1
;
my_b_read
(
&
sinfo
->
tempfile_for_exceptions
,
(
byte
*
)
ft_buf
,
(
uint
)
key_length
)
||
_mi_ck_write
(
info
,
sinfo
->
key
,
(
uchar
*
)
ft_buf
,
key_length
-
info
->
s
->
rec_reflength
))
got_error
=
1
;
}
}
}
}
}
}
...
...
mysql-test/r/fulltext.result
View file @
0f98bf44
...
@@ -421,3 +421,11 @@ SELECT COUNT(*) FROM t1 WHERE MATCH(t) AGAINST ('"osnabr
...
@@ -421,3 +421,11 @@ SELECT COUNT(*) FROM t1 WHERE MATCH(t) AGAINST ('"osnabr
COUNT(*)
COUNT(*)
1
1
DROP TABLE t1;
DROP TABLE t1;
CREATE TABLE t1 (a VARCHAR(30), FULLTEXT(a));
INSERT INTO t1 VALUES('bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb');
SET myisam_repair_threads=2;
REPAIR TABLE t1;
Table Op Msg_type Msg_text
test.t1 repair status OK
SET myisam_repair_threads=@@global.myisam_repair_threads;
DROP TABLE t1;
mysql-test/t/fulltext.test
View file @
0f98bf44
...
@@ -339,4 +339,15 @@ INSERT INTO t1 VALUES('Mit freundlichem Gr
...
@@ -339,4 +339,15 @@ INSERT INTO t1 VALUES('Mit freundlichem Gr
SELECT
COUNT
(
*
)
FROM
t1
WHERE
MATCH
(
t
)
AGAINST
(
'"osnabrck"'
IN
BOOLEAN
MODE
);
SELECT
COUNT
(
*
)
FROM
t1
WHERE
MATCH
(
t
)
AGAINST
(
'"osnabrck"'
IN
BOOLEAN
MODE
);
DROP
TABLE
t1
;
DROP
TABLE
t1
;
#
# BUG#11684 - repair crashes mysql when table has fulltext index
#
CREATE
TABLE
t1
(
a
VARCHAR
(
30
),
FULLTEXT
(
a
));
INSERT
INTO
t1
VALUES
(
'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb'
);
SET
myisam_repair_threads
=
2
;
REPAIR
TABLE
t1
;
SET
myisam_repair_threads
=@@
global
.
myisam_repair_threads
;
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