Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
lib_mysqludf_stem
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
lib_mysqludf_stem
Commits
d220f7dc
Commit
d220f7dc
authored
Sep 24, 2015
by
Kazuhiko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
return the input string if no stemmer is available.
parent
9dc3e21a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
lib_mysqludf_stem.cc
lib_mysqludf_stem.cc
+4
-2
No files found.
lib_mysqludf_stem.cc
View file @
d220f7dc
...
...
@@ -154,8 +154,10 @@ char *stem_word(UDF_INIT *initid, UDF_ARGS *args, char *result, unsigned long *l
free
(
lang
);
if
(
!
stemmer
)
{
*
error
=
1
;
return
0
;
len
=
args
->
lengths
[
1
];
*
length
=
len
;
memcpy
(
result
,
args
->
args
[
1
],
len
);
return
result
;
}
}
...
...
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