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
9b331dc3
Commit
9b331dc3
authored
Dec 02, 2002
by
Sinisa@sinisa.nasamreza.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Proper fix for SHOW VARS on 64-bit systems
parent
2c7c1976
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
sql/mysqld.cc
sql/mysqld.cc
+1
-1
sql/sql_show.cc
sql/sql_show.cc
+4
-1
sql/structs.h
sql/structs.h
+1
-1
No files found.
sql/mysqld.cc
View file @
9b331dc3
...
@@ -3110,7 +3110,7 @@ struct show_var_st init_vars[]= {
...
@@ -3110,7 +3110,7 @@ struct show_var_st init_vars[]= {
#endif
#endif
{
"interactive_timeout"
,
(
char
*
)
&
net_interactive_timeout
,
SHOW_LONG
},
{
"interactive_timeout"
,
(
char
*
)
&
net_interactive_timeout
,
SHOW_LONG
},
{
"join_buffer_size"
,
(
char
*
)
&
join_buff_size
,
SHOW_LONG
},
{
"join_buffer_size"
,
(
char
*
)
&
join_buff_size
,
SHOW_LONG
},
{
"key_buffer_size"
,
(
char
*
)
&
keybuff_size
,
SHOW_LONG
},
{
"key_buffer_size"
,
(
char
*
)
&
keybuff_size
,
SHOW_LONG
_AS_LONGLONG
},
{
"language"
,
language
,
SHOW_CHAR
},
{
"language"
,
language
,
SHOW_CHAR
},
{
"large_files_support"
,
(
char
*
)
&
opt_large_files
,
SHOW_BOOL
},
{
"large_files_support"
,
(
char
*
)
&
opt_large_files
,
SHOW_BOOL
},
#ifdef HAVE_MLOCKALL
#ifdef HAVE_MLOCKALL
...
...
sql/sql_show.cc
View file @
9b331dc3
...
@@ -1145,7 +1145,10 @@ int mysqld_show(THD *thd, const char *wild, show_var_st *variables)
...
@@ -1145,7 +1145,10 @@ int mysqld_show(THD *thd, const char *wild, show_var_st *variables)
switch
(
variables
[
i
].
type
){
switch
(
variables
[
i
].
type
){
case
SHOW_LONG
:
case
SHOW_LONG
:
case
SHOW_LONG_CONST
:
case
SHOW_LONG_CONST
:
net_store_data
(
&
packet2
,(
int32
)
*
(
ulong
*
)
variables
[
i
].
value
);
net_store_data
(
&
packet2
,(
uint32
)
*
(
ulong
*
)
variables
[
i
].
value
);
break
;
case
SHOW_LONG_AS_LONGLONG
:
net_store_data
(
&
packet2
,(
longlong
)
*
(
ulong
*
)
variables
[
i
].
value
);
break
;
break
;
case
SHOW_BOOL
:
case
SHOW_BOOL
:
net_store_data
(
&
packet2
,(
ulong
)
*
(
bool
*
)
variables
[
i
].
value
?
net_store_data
(
&
packet2
,(
ulong
)
*
(
bool
*
)
variables
[
i
].
value
?
...
...
sql/structs.h
View file @
9b331dc3
...
@@ -125,7 +125,7 @@ typedef struct {
...
@@ -125,7 +125,7 @@ typedef struct {
enum
SHOW_TYPE
{
SHOW_LONG
,
SHOW_CHAR
,
SHOW_INT
,
SHOW_CHAR_PTR
,
SHOW_BOOL
,
enum
SHOW_TYPE
{
SHOW_LONG
,
SHOW_CHAR
,
SHOW_INT
,
SHOW_CHAR_PTR
,
SHOW_BOOL
,
SHOW_MY_BOOL
,
SHOW_OPENTABLES
,
SHOW_STARTTIME
,
SHOW_QUESTION
,
SHOW_MY_BOOL
,
SHOW_OPENTABLES
,
SHOW_STARTTIME
,
SHOW_QUESTION
,
SHOW_LONG_CONST
,
SHOW_INT_CONST
,
SHOW_HAVE
};
SHOW_LONG_CONST
,
SHOW_INT_CONST
,
SHOW_HAVE
,
SHOW_LONG_AS_LONGLONG
};
enum
SHOW_COMP_OPTION
{
SHOW_OPTION_YES
,
SHOW_OPTION_NO
,
SHOW_OPTION_DISABLED
};
enum
SHOW_COMP_OPTION
{
SHOW_OPTION_YES
,
SHOW_OPTION_NO
,
SHOW_OPTION_DISABLED
};
...
...
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