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
f6073b27
Commit
f6073b27
authored
May 02, 2006
by
aivanov@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WL#3148: Modifying sizes of i_s.processlist columns ('time', 'info').
parent
b050f975
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
mysql-test/r/information_schema.result
mysql-test/r/information_schema.result
+1
-0
sql/mysql_priv.h
sql/mysql_priv.h
+2
-0
sql/sql_show.cc
sql/sql_show.cc
+4
-7
No files found.
mysql-test/r/information_schema.result
View file @
f6073b27
...
@@ -759,6 +759,7 @@ information_schema PARTITIONS PARTITION_EXPRESSION
...
@@ -759,6 +759,7 @@ information_schema PARTITIONS PARTITION_EXPRESSION
information_schema PARTITIONS SUBPARTITION_EXPRESSION
information_schema PARTITIONS SUBPARTITION_EXPRESSION
information_schema PARTITIONS PARTITION_DESCRIPTION
information_schema PARTITIONS PARTITION_DESCRIPTION
information_schema PLUGINS PLUGIN_DESCRIPTION
information_schema PLUGINS PLUGIN_DESCRIPTION
information_schema PROCESSLIST INFO
information_schema ROUTINES ROUTINE_DEFINITION
information_schema ROUTINES ROUTINE_DEFINITION
information_schema ROUTINES SQL_MODE
information_schema ROUTINES SQL_MODE
information_schema TRIGGERS ACTION_CONDITION
information_schema TRIGGERS ACTION_CONDITION
...
...
sql/mysql_priv.h
View file @
f6073b27
...
@@ -177,6 +177,8 @@ extern CHARSET_INFO *national_charset_info, *table_alias_charset;
...
@@ -177,6 +177,8 @@ extern CHARSET_INFO *national_charset_info, *table_alias_charset;
/* Characters shown for the command in 'show processlist' */
/* Characters shown for the command in 'show processlist' */
#define PROCESS_LIST_WIDTH 100
#define PROCESS_LIST_WIDTH 100
/* Characters shown for the command in 'information_schema.processlist' */
#define PROCESS_LIST_INFO_WIDTH 65535
/* Time handling defaults */
/* Time handling defaults */
#define TIMESTAMP_MAX_YEAR 2038
#define TIMESTAMP_MAX_YEAR 2038
...
...
sql/sql_show.cc
View file @
f6073b27
...
@@ -1553,15 +1553,11 @@ int fill_schema_processlist(THD* thd, TABLE_LIST* tables, COND* cond)
...
@@ -1553,15 +1553,11 @@ int fill_schema_processlist(THD* thd, TABLE_LIST* tables, COND* cond)
TABLE
*
table
=
tables
->
table
;
TABLE
*
table
=
tables
->
table
;
CHARSET_INFO
*
cs
=
system_charset_info
;
CHARSET_INFO
*
cs
=
system_charset_info
;
char
*
user
;
char
*
user
;
bool
verbose
;
ulong
max_query_length
;
time_t
now
=
time
(
0
);
time_t
now
=
time
(
0
);
DBUG_ENTER
(
"fill_process_list"
);
DBUG_ENTER
(
"fill_process_list"
);
user
=
thd
->
security_ctx
->
master_access
&
PROCESS_ACL
?
user
=
thd
->
security_ctx
->
master_access
&
PROCESS_ACL
?
NullS
:
thd
->
security_ctx
->
priv_user
;
NullS
:
thd
->
security_ctx
->
priv_user
;
verbose
=
thd
->
lex
->
verbose
;
max_query_length
=
PROCESS_LIST_WIDTH
;
VOID
(
pthread_mutex_lock
(
&
LOCK_thread_count
));
VOID
(
pthread_mutex_lock
(
&
LOCK_thread_count
));
...
@@ -1645,7 +1641,8 @@ int fill_schema_processlist(THD* thd, TABLE_LIST* tables, COND* cond)
...
@@ -1645,7 +1641,8 @@ int fill_schema_processlist(THD* thd, TABLE_LIST* tables, COND* cond)
if
(
tmp
->
query
)
if
(
tmp
->
query
)
{
{
table
->
field
[
7
]
->
store
(
tmp
->
query
,
table
->
field
[
7
]
->
store
(
tmp
->
query
,
min
(
max_query_length
,
tmp
->
query_length
),
cs
);
min
(
PROCESS_LIST_INFO_WIDTH
,
tmp
->
query_length
),
cs
);
table
->
field
[
7
]
->
set_notnull
();
table
->
field
[
7
]
->
set_notnull
();
}
}
...
@@ -5096,9 +5093,9 @@ ST_FIELD_INFO processlist_fields_info[]=
...
@@ -5096,9 +5093,9 @@ ST_FIELD_INFO processlist_fields_info[]=
{
"HOST"
,
LIST_PROCESS_HOST_LEN
,
MYSQL_TYPE_STRING
,
0
,
0
,
"Host"
},
{
"HOST"
,
LIST_PROCESS_HOST_LEN
,
MYSQL_TYPE_STRING
,
0
,
0
,
"Host"
},
{
"DB"
,
NAME_LEN
,
MYSQL_TYPE_STRING
,
0
,
1
,
"Db"
},
{
"DB"
,
NAME_LEN
,
MYSQL_TYPE_STRING
,
0
,
1
,
"Db"
},
{
"COMMAND"
,
16
,
MYSQL_TYPE_STRING
,
0
,
0
,
"Command"
},
{
"COMMAND"
,
16
,
MYSQL_TYPE_STRING
,
0
,
0
,
"Command"
},
{
"TIME"
,
4
,
MYSQL_TYPE_LONG
,
0
,
0
,
"Time"
},
{
"TIME"
,
7
,
MYSQL_TYPE_LONG
,
0
,
0
,
"Time"
},
{
"STATE"
,
30
,
MYSQL_TYPE_STRING
,
0
,
1
,
"State"
},
{
"STATE"
,
30
,
MYSQL_TYPE_STRING
,
0
,
1
,
"State"
},
{
"INFO"
,
PROCESS_LIST_WIDTH
,
MYSQL_TYPE_STRING
,
0
,
1
,
"Info"
},
{
"INFO"
,
PROCESS_LIST_
INFO_
WIDTH
,
MYSQL_TYPE_STRING
,
0
,
1
,
"Info"
},
{
0
,
0
,
MYSQL_TYPE_STRING
,
0
,
0
,
0
}
{
0
,
0
,
MYSQL_TYPE_STRING
,
0
,
0
,
0
}
};
};
...
...
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