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
41c8f461
Commit
41c8f461
authored
May 26, 2005
by
sergefp@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Post-review fixes: rename SHOW_DOUBLE to SHOW_DOUBLE_STATUS
parent
b6179919
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
sql/mysqld.cc
sql/mysqld.cc
+1
-1
sql/sql_show.cc
sql/sql_show.cc
+1
-1
sql/structs.h
sql/structs.h
+2
-1
No files found.
sql/mysqld.cc
View file @
41c8f461
...
...
@@ -5713,7 +5713,7 @@ struct show_var_st status_vars[]= {
{
"Key_reads"
,
(
char
*
)
&
dflt_key_cache_var
.
global_cache_read
,
SHOW_KEY_CACHE_LONG
},
{
"Key_write_requests"
,
(
char
*
)
&
dflt_key_cache_var
.
global_cache_w_requests
,
SHOW_KEY_CACHE_LONG
},
{
"Key_writes"
,
(
char
*
)
&
dflt_key_cache_var
.
global_cache_write
,
SHOW_KEY_CACHE_LONG
},
{
"Last_query_cost"
,
(
char
*
)
offsetof
(
STATUS_VAR
,
last_query_cost
),
SHOW_DOUBLE
},
{
"Last_query_cost"
,
(
char
*
)
offsetof
(
STATUS_VAR
,
last_query_cost
),
SHOW_DOUBLE
_STATUS
},
{
"Max_used_connections"
,
(
char
*
)
&
max_used_connections
,
SHOW_LONG
},
#ifdef HAVE_NDBCLUSTER_DB
{
"Ndb_"
,
(
char
*
)
&
ndb_status_variables
,
SHOW_VARS
},
...
...
sql/sql_show.cc
View file @
41c8f461
...
...
@@ -1356,7 +1356,7 @@ static bool show_status_array(THD *thd, const char *wild,
end
=
strend
(
pos
);
break
;
}
case
SHOW_DOUBLE
:
case
SHOW_DOUBLE
_STATUS
:
{
value
=
((
char
*
)
status_var
+
(
ulong
)
value
);
end
=
buff
+
sprintf
(
buff
,
"%f"
,
*
(
double
*
)
value
);
...
...
sql/structs.h
View file @
41c8f461
...
...
@@ -164,7 +164,8 @@ typedef struct st_known_date_time_format {
enum
SHOW_TYPE
{
SHOW_UNDEF
,
SHOW_LONG
,
SHOW_LONGLONG
,
SHOW_INT
,
SHOW_CHAR
,
SHOW_CHAR_PTR
,
SHOW_DOUBLE
,
SHOW_LONG
,
SHOW_LONGLONG
,
SHOW_INT
,
SHOW_CHAR
,
SHOW_CHAR_PTR
,
SHOW_DOUBLE_STATUS
,
SHOW_BOOL
,
SHOW_MY_BOOL
,
SHOW_OPENTABLES
,
SHOW_STARTTIME
,
SHOW_QUESTION
,
SHOW_LONG_CONST
,
SHOW_INT_CONST
,
SHOW_HAVE
,
SHOW_SYS
,
SHOW_HA_ROWS
,
SHOW_VARS
,
...
...
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