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
5f6b6fa3
Commit
5f6b6fa3
authored
Jan 27, 2003
by
serg@serg.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes for SHOW VARIABLES and --ft-stopword-list
parent
4b61ba5a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
myisam/ft_stopwords.c
myisam/ft_stopwords.c
+5
-2
mysql-test/r/fulltext_var.result
mysql-test/r/fulltext_var.result
+1
-1
sql/set_var.cc
sql/set_var.cc
+1
-1
No files found.
myisam/ft_stopwords.c
View file @
5f6b6fa3
...
...
@@ -36,7 +36,7 @@ static int FT_STOPWORD_cmp(void* cmp_arg __attribute__((unused)),
static
void
FT_STOPWORD_free
(
FT_STOPWORD
*
w
,
TREE_FREE
action
,
void
*
arg
__attribute__
((
unused
)))
{
if
(
action
==
free_free
&&
ft_stopword_file
)
if
(
action
==
free_free
)
my_free
(
w
->
pos
,
MYF
(
0
));
}
...
...
@@ -55,7 +55,9 @@ int ft_init_stopwords()
if
(
!
(
stopwords3
=
(
TREE
*
)
my_malloc
(
sizeof
(
TREE
),
MYF
(
0
))))
return
-
1
;
init_tree
(
stopwords3
,
0
,
0
,
sizeof
(
FT_STOPWORD
),(
qsort_cmp2
)
&
FT_STOPWORD_cmp
,
0
,
(
tree_element_free
)
&
FT_STOPWORD_free
,
NULL
);
0
,
(
ft_stopword_file
?
(
tree_element_free
)
&
FT_STOPWORD_free
:
0
),
NULL
);
}
if
(
ft_stopword_file
)
...
...
@@ -102,6 +104,7 @@ int ft_init_stopwords()
if
(
ft_add_stopword
(
*
sws
))
return
-
1
;
}
ft_stopword_file
=
"(built-in)"
;
/* for SHOW VARIABLES */
}
return
0
;
}
...
...
mysql-test/r/fulltext_var.result
View file @
5f6b6fa3
...
...
@@ -4,4 +4,4 @@ ft_boolean_syntax + -><()~*:""&|
ft_min_word_len 4
ft_max_word_len 254
ft_max_word_len_for_sort 20
ft_stopword_file
ft_stopword_file
(built-in)
sql/set_var.cc
View file @
5f6b6fa3
...
...
@@ -415,7 +415,7 @@ struct show_var_st init_vars[]= {
{
"ft_min_word_len"
,
(
char
*
)
&
ft_min_word_len
,
SHOW_LONG
},
{
"ft_max_word_len"
,
(
char
*
)
&
ft_max_word_len
,
SHOW_LONG
},
{
"ft_max_word_len_for_sort"
,(
char
*
)
&
ft_max_word_len_for_sort
,
SHOW_LONG
},
{
"ft_stopword_file"
,
(
char
*
)
&
ft_stopword_file
,
SHOW_CHAR
},
{
"ft_stopword_file"
,
(
char
*
)
&
ft_stopword_file
,
SHOW_CHAR
_PTR
},
{
"have_bdb"
,
(
char
*
)
&
have_berkeley_db
,
SHOW_HAVE
},
{
"have_innodb"
,
(
char
*
)
&
have_innodb
,
SHOW_HAVE
},
{
"have_isam"
,
(
char
*
)
&
have_isam
,
SHOW_HAVE
},
...
...
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