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
b2760c0a
Commit
b2760c0a
authored
Aug 18, 2000
by
serg@infomag.ape.relarn.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
myisam/ft_* bugfix
parent
9c1ecff8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
myisam/ft_eval.c
myisam/ft_eval.c
+1
-1
myisam/ft_search.c
myisam/ft_search.c
+3
-0
myisam/ft_test1.c
myisam/ft_test1.c
+1
-1
No files found.
myisam/ft_eval.c
View file @
b2760c0a
...
...
@@ -96,7 +96,7 @@ int main(int argc,char *argv[])
w
=
ft_get_relevance
(
result
);
printf
(
"%d %.*s %f
\n
"
,
i
,
t
,
read_record
+
2
,
w
);
}
if
(
err
!=
HA_ERR_
KEY_NOT_FOUND
)
{
if
(
err
!=
HA_ERR_
END_OF_FILE
)
{
printf
(
"ft_read_next %d failed with errno %3d
\n
"
,
j
,
my_errno
);
goto
err
;
}
...
...
myisam/ft_search.c
View file @
b2760c0a
...
...
@@ -210,7 +210,10 @@ int ft_read_next(FT_DOCLIST *handler, char *record)
MI_INFO
*
info
=
handler
->
info
;
if
(
++
handler
->
curdoc
>=
handler
->
ndocs
)
{
--
handler
->
curdoc
;
return
HA_ERR_END_OF_FILE
;
}
info
->
update
&=
(
HA_STATE_CHANGED
|
HA_STATE_ROW_CHANGED
);
...
...
myisam/ft_test1.c
View file @
b2760c0a
...
...
@@ -147,7 +147,7 @@ static int run_test(const char *filename)
i
,
query
[
i
],
result
->
ndocs
);
for
(
j
=
0
;
j
<
5
;
j
++
)
{
double
w
;
int
err
;
err
=
ft_read_next
(
result
,
read_record
);
if
(
err
==
HA_ERR_
KEY_NOT_FOUND
)
{
if
(
err
==
HA_ERR_
END_OF_FILE
)
{
printf
(
"No more matches!
\n
"
);
break
;
}
else
if
(
err
)
{
...
...
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