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
03920635
Commit
03920635
authored
Apr 07, 2006
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge ibabaev@bk-internal.mysql.com:/home/bk/mysql-5.1-new
into rurik.mysql.com:/home/igor/mysql-5.1
parents
2722c0e2
ef1ec197
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
plugin/fulltext/configure.in
plugin/fulltext/configure.in
+1
-0
plugin/fulltext/plugin_example.c
plugin/fulltext/plugin_example.c
+6
-5
No files found.
plugin/fulltext/configure.in
View file @
03920635
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
AC_INIT(plugin_example, 0.1)
AC_INIT(plugin_example, 0.1)
AM_INIT_AUTOMAKE
AM_INIT_AUTOMAKE
AC_DISABLE_STATIC
AC_PROG_LIBTOOL
AC_PROG_LIBTOOL
AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
AC_OUTPUT
...
...
plugin/fulltext/plugin_example.c
View file @
03920635
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
#include <ctype.h>
#include <ctype.h>
#include <mysql/plugin.h>
#include <mysql/plugin.h>
long
number_of_calls
=
0
;
/* for SHOW STATUS, see below */
static
long
number_of_calls
=
0
;
/* for SHOW STATUS, see below */
/*
/*
Simple full-text parser plugin that acts as a replacement for the
Simple full-text parser plugin that acts as a replacement for the
...
@@ -84,7 +84,7 @@ static int simple_parser_plugin_deinit(void)
...
@@ -84,7 +84,7 @@ static int simple_parser_plugin_deinit(void)
/*
/*
Initialize the parser
at ... [WHEN]
Initialize the parser
on the first use in the query
SYNOPSIS
SYNOPSIS
simple_parser_init()
simple_parser_init()
...
@@ -104,7 +104,7 @@ static int simple_parser_init(MYSQL_FTPARSER_PARAM *param)
...
@@ -104,7 +104,7 @@ static int simple_parser_init(MYSQL_FTPARSER_PARAM *param)
/*
/*
Terminate the parser at
... [WHEN]
Terminate the parser at
the end of the query
SYNOPSIS
SYNOPSIS
simple_parser_deinit()
simple_parser_deinit()
...
@@ -164,7 +164,7 @@ static void add_word(MYSQL_FTPARSER_PARAM *param, char *word, size_t len)
...
@@ -164,7 +164,7 @@ static void add_word(MYSQL_FTPARSER_PARAM *param, char *word, size_t len)
and passes every word to the MySQL full-text indexing engine.
and passes every word to the MySQL full-text indexing engine.
*/
*/
int
simple_parser_parse
(
MYSQL_FTPARSER_PARAM
*
param
)
static
int
simple_parser_parse
(
MYSQL_FTPARSER_PARAM
*
param
)
{
{
char
*
end
,
*
start
,
*
docend
=
param
->
doc
+
param
->
length
;
char
*
end
,
*
start
,
*
docend
=
param
->
doc
+
param
->
length
;
...
@@ -205,7 +205,7 @@ static struct st_mysql_ftparser simple_parser_descriptor=
...
@@ -205,7 +205,7 @@ static struct st_mysql_ftparser simple_parser_descriptor=
Plugin status variables for SHOW STATUS
Plugin status variables for SHOW STATUS
*/
*/
struct
st_mysql_show_var
simple_status
[]
=
st
atic
st
ruct
st_mysql_show_var
simple_status
[]
=
{
{
{
"static"
,
(
char
*
)
"just a static text"
,
SHOW_CHAR
},
{
"static"
,
(
char
*
)
"just a static text"
,
SHOW_CHAR
},
{
"called"
,
(
char
*
)
&
number_of_calls
,
SHOW_LONG
},
{
"called"
,
(
char
*
)
&
number_of_calls
,
SHOW_LONG
},
...
@@ -229,3 +229,4 @@ mysql_declare_plugin
...
@@ -229,3 +229,4 @@ mysql_declare_plugin
simple_status
/* status variables */
simple_status
/* status variables */
}
}
mysql_declare_plugin_end
;
mysql_declare_plugin_end
;
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