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
910a0ddd
Commit
910a0ddd
authored
Sep 10, 2023
by
Alexey Botchkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-27295 Backport SQL service, introduced by MDEV-19275.
necessary functions added to the SQL SERVICE.
parent
b080cff3
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
67 additions
and
1 deletion
+67
-1
include/mysql/plugin_audit.h.pp
include/mysql/plugin_audit.h.pp
+9
-0
include/mysql/plugin_auth.h.pp
include/mysql/plugin_auth.h.pp
+9
-0
include/mysql/plugin_encryption.h.pp
include/mysql/plugin_encryption.h.pp
+9
-0
include/mysql/plugin_ftparser.h.pp
include/mysql/plugin_ftparser.h.pp
+9
-0
include/mysql/plugin_password_validation.h.pp
include/mysql/plugin_password_validation.h.pp
+9
-0
include/mysql/service_sql.h
include/mysql/service_sql.h
+16
-1
sql/sql_plugin_services.inl
sql/sql_plugin_services.inl
+6
-0
No files found.
include/mysql/plugin_audit.h.pp
View file @
910a0ddd
...
...
@@ -435,6 +435,15 @@ extern struct sql_service_st {
void
(
STDCALL
*
mysql_free_result_func
)(
MYSQL_RES
*
result
);
MYSQL_ROW
(
STDCALL
*
mysql_fetch_row_func
)(
MYSQL_RES
*
result
);
void
(
STDCALL
*
mysql_close_func
)(
MYSQL
*
mysql
);
int
(
STDCALL
*
mysql_options_func
)(
MYSQL
*
mysql
,
enum
mysql_option
option
,
const
void
*
arg
);
unsigned
long
*
(
STDCALL
*
mysql_fetch_lengths_func
)(
MYSQL_RES
*
res
);
int
(
STDCALL
*
mysql_set_character_set_func
)(
MYSQL
*
mysql
,
const
char
*
cs_name
);
unsigned
int
(
STDCALL
*
mysql_num_fields_func
)(
MYSQL_RES
*
res
);
int
(
STDCALL
*
mysql_select_db_func
)(
MYSQL
*
mysql
,
const
char
*
db
);
my_bool
(
STDCALL
*
mysql_ssl_set_func
)(
MYSQL
*
mysql
,
const
char
*
key
,
const
char
*
cert
,
const
char
*
ca
,
const
char
*
capath
,
const
char
*
cipher
);
}
*
sql_service
;
MYSQL
*
mysql_real_connect_local
(
MYSQL
*
mysql
);
struct
st_mysql_xid
{
...
...
include/mysql/plugin_auth.h.pp
View file @
910a0ddd
...
...
@@ -435,6 +435,15 @@ extern struct sql_service_st {
void
(
STDCALL
*
mysql_free_result_func
)(
MYSQL_RES
*
result
);
MYSQL_ROW
(
STDCALL
*
mysql_fetch_row_func
)(
MYSQL_RES
*
result
);
void
(
STDCALL
*
mysql_close_func
)(
MYSQL
*
mysql
);
int
(
STDCALL
*
mysql_options_func
)(
MYSQL
*
mysql
,
enum
mysql_option
option
,
const
void
*
arg
);
unsigned
long
*
(
STDCALL
*
mysql_fetch_lengths_func
)(
MYSQL_RES
*
res
);
int
(
STDCALL
*
mysql_set_character_set_func
)(
MYSQL
*
mysql
,
const
char
*
cs_name
);
unsigned
int
(
STDCALL
*
mysql_num_fields_func
)(
MYSQL_RES
*
res
);
int
(
STDCALL
*
mysql_select_db_func
)(
MYSQL
*
mysql
,
const
char
*
db
);
my_bool
(
STDCALL
*
mysql_ssl_set_func
)(
MYSQL
*
mysql
,
const
char
*
key
,
const
char
*
cert
,
const
char
*
ca
,
const
char
*
capath
,
const
char
*
cipher
);
}
*
sql_service
;
MYSQL
*
mysql_real_connect_local
(
MYSQL
*
mysql
);
struct
st_mysql_xid
{
...
...
include/mysql/plugin_encryption.h.pp
View file @
910a0ddd
...
...
@@ -435,6 +435,15 @@ extern struct sql_service_st {
void
(
STDCALL
*
mysql_free_result_func
)(
MYSQL_RES
*
result
);
MYSQL_ROW
(
STDCALL
*
mysql_fetch_row_func
)(
MYSQL_RES
*
result
);
void
(
STDCALL
*
mysql_close_func
)(
MYSQL
*
mysql
);
int
(
STDCALL
*
mysql_options_func
)(
MYSQL
*
mysql
,
enum
mysql_option
option
,
const
void
*
arg
);
unsigned
long
*
(
STDCALL
*
mysql_fetch_lengths_func
)(
MYSQL_RES
*
res
);
int
(
STDCALL
*
mysql_set_character_set_func
)(
MYSQL
*
mysql
,
const
char
*
cs_name
);
unsigned
int
(
STDCALL
*
mysql_num_fields_func
)(
MYSQL_RES
*
res
);
int
(
STDCALL
*
mysql_select_db_func
)(
MYSQL
*
mysql
,
const
char
*
db
);
my_bool
(
STDCALL
*
mysql_ssl_set_func
)(
MYSQL
*
mysql
,
const
char
*
key
,
const
char
*
cert
,
const
char
*
ca
,
const
char
*
capath
,
const
char
*
cipher
);
}
*
sql_service
;
MYSQL
*
mysql_real_connect_local
(
MYSQL
*
mysql
);
struct
st_mysql_xid
{
...
...
include/mysql/plugin_ftparser.h.pp
View file @
910a0ddd
...
...
@@ -435,6 +435,15 @@ extern struct sql_service_st {
void
(
STDCALL
*
mysql_free_result_func
)(
MYSQL_RES
*
result
);
MYSQL_ROW
(
STDCALL
*
mysql_fetch_row_func
)(
MYSQL_RES
*
result
);
void
(
STDCALL
*
mysql_close_func
)(
MYSQL
*
mysql
);
int
(
STDCALL
*
mysql_options_func
)(
MYSQL
*
mysql
,
enum
mysql_option
option
,
const
void
*
arg
);
unsigned
long
*
(
STDCALL
*
mysql_fetch_lengths_func
)(
MYSQL_RES
*
res
);
int
(
STDCALL
*
mysql_set_character_set_func
)(
MYSQL
*
mysql
,
const
char
*
cs_name
);
unsigned
int
(
STDCALL
*
mysql_num_fields_func
)(
MYSQL_RES
*
res
);
int
(
STDCALL
*
mysql_select_db_func
)(
MYSQL
*
mysql
,
const
char
*
db
);
my_bool
(
STDCALL
*
mysql_ssl_set_func
)(
MYSQL
*
mysql
,
const
char
*
key
,
const
char
*
cert
,
const
char
*
ca
,
const
char
*
capath
,
const
char
*
cipher
);
}
*
sql_service
;
MYSQL
*
mysql_real_connect_local
(
MYSQL
*
mysql
);
struct
st_mysql_xid
{
...
...
include/mysql/plugin_password_validation.h.pp
View file @
910a0ddd
...
...
@@ -435,6 +435,15 @@ extern struct sql_service_st {
void
(
STDCALL
*
mysql_free_result_func
)(
MYSQL_RES
*
result
);
MYSQL_ROW
(
STDCALL
*
mysql_fetch_row_func
)(
MYSQL_RES
*
result
);
void
(
STDCALL
*
mysql_close_func
)(
MYSQL
*
mysql
);
int
(
STDCALL
*
mysql_options_func
)(
MYSQL
*
mysql
,
enum
mysql_option
option
,
const
void
*
arg
);
unsigned
long
*
(
STDCALL
*
mysql_fetch_lengths_func
)(
MYSQL_RES
*
res
);
int
(
STDCALL
*
mysql_set_character_set_func
)(
MYSQL
*
mysql
,
const
char
*
cs_name
);
unsigned
int
(
STDCALL
*
mysql_num_fields_func
)(
MYSQL_RES
*
res
);
int
(
STDCALL
*
mysql_select_db_func
)(
MYSQL
*
mysql
,
const
char
*
db
);
my_bool
(
STDCALL
*
mysql_ssl_set_func
)(
MYSQL
*
mysql
,
const
char
*
key
,
const
char
*
cert
,
const
char
*
ca
,
const
char
*
capath
,
const
char
*
cipher
);
}
*
sql_service
;
MYSQL
*
mysql_real_connect_local
(
MYSQL
*
mysql
);
struct
st_mysql_xid
{
...
...
include/mysql/service_sql.h
View file @
910a0ddd
...
...
@@ -62,6 +62,15 @@ extern struct sql_service_st {
void
(
STDCALL
*
mysql_free_result_func
)(
MYSQL_RES
*
result
);
MYSQL_ROW
(
STDCALL
*
mysql_fetch_row_func
)(
MYSQL_RES
*
result
);
void
(
STDCALL
*
mysql_close_func
)(
MYSQL
*
mysql
);
int
(
STDCALL
*
mysql_options_func
)(
MYSQL
*
mysql
,
enum
mysql_option
option
,
const
void
*
arg
);
unsigned
long
*
(
STDCALL
*
mysql_fetch_lengths_func
)(
MYSQL_RES
*
res
);
int
(
STDCALL
*
mysql_set_character_set_func
)(
MYSQL
*
mysql
,
const
char
*
cs_name
);
unsigned
int
(
STDCALL
*
mysql_num_fields_func
)(
MYSQL_RES
*
res
);
int
(
STDCALL
*
mysql_select_db_func
)(
MYSQL
*
mysql
,
const
char
*
db
);
my_bool
(
STDCALL
*
mysql_ssl_set_func
)(
MYSQL
*
mysql
,
const
char
*
key
,
const
char
*
cert
,
const
char
*
ca
,
const
char
*
capath
,
const
char
*
cipher
);
}
*
sql_service
;
#ifdef MYSQL_DYNAMIC_PLUGIN
...
...
@@ -78,6 +87,12 @@ extern struct sql_service_st {
#define mysql_free_result(R) sql_service->mysql_free_result_func(R)
#define mysql_fetch_row(R) sql_service->mysql_fetch_row_func(R)
#define mysql_close(M) sql_service->mysql_close_func(M)
#define mysql_options(M,O,V) sql_service->mysql_options_func(M,O,V)
#define mysql_fetch_lengths(R) sql_service->mysql_fetch_lengths_func(R)
#define mysql_set_character_set(M,C) sql_service->mysql_set_character_set_func(M,C)
#define mysql_num_fields(R) sql_service->mysql_num_fields_func(R)
#define mysql_select_db(M,D) sql_service->mysql_select_db_func(M,D)
#define mysql_ssl_set(M,K,C,A,P,H) sql_service->mysql_ssl_set_func(M,K,C,A,P,H)
#else
...
...
@@ -90,7 +105,7 @@ extern struct sql_service_st {
*/
MYSQL
*
mysql_real_connect_local
(
MYSQL
*
mysql
);
/* The rest of the function declarations m
e
st be taken from the mysql.h */
/* The rest of the function declarations m
u
st be taken from the mysql.h */
#endif
/*MYSQL_DYNAMIC_PLUGIN*/
...
...
sql/sql_plugin_services.inl
View file @
910a0ddd
...
...
@@ -236,6 +236,12 @@ struct sql_service_st sql_service_handler=
mysql_free_result,
mysql_fetch_row,
mysql_close,
mysql_options,
mysql_fetch_lengths,
mysql_set_character_set,
mysql_num_fields,
mysql_select_db,
mysql_ssl_set
};
static struct st_service_ref list_of_services[]=
...
...
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