Commit d220f7dc authored by Kazuhiko's avatar Kazuhiko

return the input string if no stemmer is available.

parent 9dc3e21a
...@@ -154,8 +154,10 @@ char *stem_word(UDF_INIT *initid, UDF_ARGS *args, char *result, unsigned long *l ...@@ -154,8 +154,10 @@ char *stem_word(UDF_INIT *initid, UDF_ARGS *args, char *result, unsigned long *l
free(lang); free(lang);
if (!stemmer) { if (!stemmer) {
*error=1; len = args->lengths[1];
return 0; *length = len;
memcpy(result, args->args[1], len);
return result;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment