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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
18feb62f
Commit
18feb62f
authored
Mar 04, 2015
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-6819 st_mysql_show_var::value should be void* not char*
parent
20cacb00
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
185 additions
and
182 deletions
+185
-182
include/mysql/plugin.h
include/mysql/plugin.h
+2
-2
include/mysql/plugin_audit.h.pp
include/mysql/plugin_audit.h.pp
+2
-2
include/mysql/plugin_auth.h.pp
include/mysql/plugin_auth.h.pp
+2
-2
include/mysql/plugin_encryption_key_management.h.pp
include/mysql/plugin_encryption_key_management.h.pp
+2
-2
include/mysql/plugin_ftparser.h.pp
include/mysql/plugin_ftparser.h.pp
+2
-2
include/mysql/plugin_password_validation.h.pp
include/mysql/plugin_password_validation.h.pp
+2
-2
sql/mysqld.cc
sql/mysqld.cc
+169
-166
sql/sql_show.cc
sql/sql_show.cc
+4
-4
No files found.
include/mysql/plugin.h
View file @
18feb62f
...
...
@@ -190,12 +190,12 @@ enum enum_var_type
struct
st_mysql_show_var
{
const
char
*
name
;
char
*
value
;
void
*
value
;
enum
enum_mysql_show_type
type
;
};
#define SHOW_VAR_FUNC_BUFF_SIZE (256 * sizeof(void*))
typedef
int
(
*
mysql_show_var_func
)(
MYSQL_THD
,
struct
st_mysql_show_var
*
,
char
*
,
enum
enum_var_type
);
typedef
int
(
*
mysql_show_var_func
)(
MYSQL_THD
,
struct
st_mysql_show_var
*
,
void
*
,
enum
enum_var_type
);
/*
...
...
include/mysql/plugin_audit.h.pp
View file @
18feb62f
...
...
@@ -231,10 +231,10 @@ enum enum_var_type
};
struct
st_mysql_show_var
{
const
char
*
name
;
char
*
value
;
void
*
value
;
enum
enum_mysql_show_type
type
;
};
typedef
int
(
*
mysql_show_var_func
)(
void
*
,
struct
st_mysql_show_var
*
,
char
*
,
enum
enum_var_type
);
typedef
int
(
*
mysql_show_var_func
)(
void
*
,
struct
st_mysql_show_var
*
,
void
*
,
enum
enum_var_type
);
struct
st_mysql_sys_var
;
struct
st_mysql_value
;
typedef
int
(
*
mysql_var_check_func
)(
void
*
thd
,
...
...
include/mysql/plugin_auth.h.pp
View file @
18feb62f
...
...
@@ -231,10 +231,10 @@ enum enum_var_type
};
struct
st_mysql_show_var
{
const
char
*
name
;
char
*
value
;
void
*
value
;
enum
enum_mysql_show_type
type
;
};
typedef
int
(
*
mysql_show_var_func
)(
void
*
,
struct
st_mysql_show_var
*
,
char
*
,
enum
enum_var_type
);
typedef
int
(
*
mysql_show_var_func
)(
void
*
,
struct
st_mysql_show_var
*
,
void
*
,
enum
enum_var_type
);
struct
st_mysql_sys_var
;
struct
st_mysql_value
;
typedef
int
(
*
mysql_var_check_func
)(
void
*
thd
,
...
...
include/mysql/plugin_encryption_key_management.h.pp
View file @
18feb62f
...
...
@@ -231,10 +231,10 @@ enum enum_var_type
};
struct
st_mysql_show_var
{
const
char
*
name
;
char
*
value
;
void
*
value
;
enum
enum_mysql_show_type
type
;
};
typedef
int
(
*
mysql_show_var_func
)(
void
*
,
struct
st_mysql_show_var
*
,
char
*
,
enum
enum_var_type
);
typedef
int
(
*
mysql_show_var_func
)(
void
*
,
struct
st_mysql_show_var
*
,
void
*
,
enum
enum_var_type
);
struct
st_mysql_sys_var
;
struct
st_mysql_value
;
typedef
int
(
*
mysql_var_check_func
)(
void
*
thd
,
...
...
include/mysql/plugin_ftparser.h.pp
View file @
18feb62f
...
...
@@ -231,10 +231,10 @@ enum enum_var_type
};
struct
st_mysql_show_var
{
const
char
*
name
;
char
*
value
;
void
*
value
;
enum
enum_mysql_show_type
type
;
};
typedef
int
(
*
mysql_show_var_func
)(
void
*
,
struct
st_mysql_show_var
*
,
char
*
,
enum
enum_var_type
);
typedef
int
(
*
mysql_show_var_func
)(
void
*
,
struct
st_mysql_show_var
*
,
void
*
,
enum
enum_var_type
);
struct
st_mysql_sys_var
;
struct
st_mysql_value
;
typedef
int
(
*
mysql_var_check_func
)(
void
*
thd
,
...
...
include/mysql/plugin_password_validation.h.pp
View file @
18feb62f
...
...
@@ -231,10 +231,10 @@ enum enum_var_type
};
struct
st_mysql_show_var
{
const
char
*
name
;
char
*
value
;
void
*
value
;
enum
enum_mysql_show_type
type
;
};
typedef
int
(
*
mysql_show_var_func
)(
void
*
,
struct
st_mysql_show_var
*
,
char
*
,
enum
enum_var_type
);
typedef
int
(
*
mysql_show_var_func
)(
void
*
,
struct
st_mysql_show_var
*
,
void
*
,
enum
enum_var_type
);
struct
st_mysql_sys_var
;
struct
st_mysql_value
;
typedef
int
(
*
mysql_var_check_func
)(
void
*
thd
,
...
...
sql/mysqld.cc
View file @
18feb62f
This diff is collapsed.
Click to expand it.
sql/sql_show.cc
View file @
18feb62f
...
...
@@ -3132,15 +3132,15 @@ static bool show_status_array(THD *thd, const char *wild,
name_buffer
,
wild
)))
&&
(
!
cond
||
cond
->
val_int
()))
{
char
*
value
=
var
->
value
;
void
*
value
=
var
->
value
;
const
char
*
pos
,
*
end
;
// We assign a lot of const's
if
(
show_type
==
SHOW_SYS
)
{
sys_var
*
var
=
(
(
sys_var
*
)
value
)
;
sys_var
*
var
=
(
sys_var
*
)
value
;
show_type
=
var
->
show_type
();
mysql_mutex_lock
(
&
LOCK_global_system_variables
);
value
=
(
char
*
)
var
->
value_ptr
(
thd
,
scope
,
&
null_lex_str
);
value
=
var
->
value_ptr
(
thd
,
scope
,
&
null_lex_str
);
charset
=
var
->
charset
(
thd
);
}
...
...
@@ -3200,7 +3200,7 @@ static bool show_status_array(THD *thd, const char *wild,
}
case
SHOW_CHAR
:
{
if
(
!
(
pos
=
value
))
if
(
!
(
pos
=
(
char
*
)
value
))
pos
=
""
;
end
=
strend
(
pos
);
break
;
...
...
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